Clean up the modeline a bit
This commit is contained in:
parent
3799d6fd0b
commit
0ebba48c93
5 changed files with 11 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
* Added `transient/` to `.gitignore`.
|
* Added `transient/` to `.gitignore`.
|
||||||
* Fallback to `sample/prelude-modules.el` in the absence of a `prelude-modules.el` in one's personal folder.
|
* Fallback to `sample/prelude-modules.el` in the absence of a `prelude-modules.el` in one's personal folder.
|
||||||
* [Ruby] Don't auto-insert coding comments.
|
* [Ruby] Don't auto-insert coding comments.
|
||||||
|
* Hide (via `diminish`) `editorconfig-mode`, `super-save`, `company`, `abbrev` and `ivy` in the modeline.
|
||||||
|
|
||||||
### Bugs fixed
|
### Bugs fixed
|
||||||
|
|
||||||
|
|
|
@ -146,6 +146,7 @@
|
||||||
;; add integration with ace-window
|
;; add integration with ace-window
|
||||||
(add-to-list 'super-save-triggers 'ace-window)
|
(add-to-list 'super-save-triggers 'ace-window)
|
||||||
(super-save-mode +1)
|
(super-save-mode +1)
|
||||||
|
(diminish 'super-save-mode)
|
||||||
|
|
||||||
(defadvice set-buffer-major-mode (after set-major-mode activate compile)
|
(defadvice set-buffer-major-mode (after set-major-mode activate compile)
|
||||||
"Set buffer major mode according to `auto-mode-alist'."
|
"Set buffer major mode according to `auto-mode-alist'."
|
||||||
|
@ -307,6 +308,7 @@ indent yanked text (with prefix arg don't indent)."
|
||||||
|
|
||||||
;; abbrev config
|
;; abbrev config
|
||||||
(add-hook 'text-mode-hook 'abbrev-mode)
|
(add-hook 'text-mode-hook 'abbrev-mode)
|
||||||
|
(diminish 'abbrev-mode)
|
||||||
|
|
||||||
;; make a shell script executable automatically on save
|
;; make a shell script executable automatically on save
|
||||||
(add-hook 'after-save-hook
|
(add-hook 'after-save-hook
|
||||||
|
@ -415,6 +417,7 @@ and file 'filename' will be opened and cursor set on line 'linenumber'"
|
||||||
;; use settings from .editorconfig file when present
|
;; use settings from .editorconfig file when present
|
||||||
(require 'editorconfig)
|
(require 'editorconfig)
|
||||||
(editorconfig-mode 1)
|
(editorconfig-mode 1)
|
||||||
|
(diminish 'editorconfig-mode)
|
||||||
|
|
||||||
(provide 'prelude-editor)
|
(provide 'prelude-editor)
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
(prelude-require-packages '(company))
|
(prelude-require-packages '(company))
|
||||||
|
|
||||||
(require 'company)
|
(require 'company)
|
||||||
|
(require 'diminish)
|
||||||
|
|
||||||
(setq company-idle-delay 0.5)
|
(setq company-idle-delay 0.5)
|
||||||
(setq company-show-numbers t)
|
(setq company-show-numbers t)
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
(setq company-tooltip-flip-when-above t)
|
(setq company-tooltip-flip-when-above t)
|
||||||
|
|
||||||
(global-company-mode 1)
|
(global-company-mode 1)
|
||||||
|
(diminish 'global-company-mode)
|
||||||
|
|
||||||
(provide 'prelude-company)
|
(provide 'prelude-company)
|
||||||
;;; prelude-company.el ends here
|
;;; prelude-company.el ends here
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
;; ivy is a powerful alternative to the popular ido-mode
|
;; ivy is a powerful alternative to the popular ido-mode
|
||||||
|
|
||||||
(require 'ivy)
|
(require 'ivy)
|
||||||
|
(require 'diminish)
|
||||||
|
|
||||||
(ivy-mode 1)
|
(ivy-mode 1)
|
||||||
(setq ivy-use-virtual-buffers t)
|
(setq ivy-use-virtual-buffers t)
|
||||||
|
@ -45,6 +46,8 @@
|
||||||
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
||||||
(global-set-key (kbd "<f6>") 'ivy-resume)
|
(global-set-key (kbd "<f6>") 'ivy-resume)
|
||||||
|
|
||||||
|
(diminish 'ivy-mode)
|
||||||
|
|
||||||
(setq projectile-completion-system 'ivy)
|
(setq projectile-completion-system 'ivy)
|
||||||
|
|
||||||
;;; Swiper
|
;;; Swiper
|
||||||
|
|
|
@ -65,7 +65,8 @@
|
||||||
prelude-flyspell)
|
prelude-flyspell)
|
||||||
(flyspell-prog-mode))
|
(flyspell-prog-mode))
|
||||||
(when prelude-guru
|
(when prelude-guru
|
||||||
(guru-mode +1))
|
(guru-mode +1)
|
||||||
|
(diminish 'guru-mode))
|
||||||
(smartparens-mode +1)
|
(smartparens-mode +1)
|
||||||
(prelude-enable-whitespace)
|
(prelude-enable-whitespace)
|
||||||
(prelude-local-comment-auto-fill))
|
(prelude-local-comment-auto-fill))
|
||||||
|
|
Loading…
Reference in a new issue