Clean up the modeline a bit

This commit is contained in:
Bozhidar Batsov 2020-11-24 09:40:14 +02:00
parent 3799d6fd0b
commit 0ebba48c93
5 changed files with 11 additions and 1 deletions

View file

@ -22,6 +22,7 @@
* Added `transient/` to `.gitignore`.
* 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.
* Hide (via `diminish`) `editorconfig-mode`, `super-save`, `company`, `abbrev` and `ivy` in the modeline.
### Bugs fixed

View file

@ -146,6 +146,7 @@
;; add integration with ace-window
(add-to-list 'super-save-triggers 'ace-window)
(super-save-mode +1)
(diminish 'super-save-mode)
(defadvice set-buffer-major-mode (after set-major-mode activate compile)
"Set buffer major mode according to `auto-mode-alist'."
@ -307,6 +308,7 @@ indent yanked text (with prefix arg don't indent)."
;; abbrev config
(add-hook 'text-mode-hook 'abbrev-mode)
(diminish 'abbrev-mode)
;; make a shell script executable automatically on save
(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
(require 'editorconfig)
(editorconfig-mode 1)
(diminish 'editorconfig-mode)
(provide 'prelude-editor)

View file

@ -32,6 +32,7 @@
(prelude-require-packages '(company))
(require 'company)
(require 'diminish)
(setq company-idle-delay 0.5)
(setq company-show-numbers t)
@ -43,6 +44,7 @@
(setq company-tooltip-flip-when-above t)
(global-company-mode 1)
(diminish 'global-company-mode)
(provide 'prelude-company)
;;; prelude-company.el ends here

View file

@ -38,6 +38,7 @@
;; ivy is a powerful alternative to the popular ido-mode
(require 'ivy)
(require 'diminish)
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
@ -45,6 +46,8 @@
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "<f6>") 'ivy-resume)
(diminish 'ivy-mode)
(setq projectile-completion-system 'ivy)
;;; Swiper

View file

@ -65,7 +65,8 @@
prelude-flyspell)
(flyspell-prog-mode))
(when prelude-guru
(guru-mode +1))
(guru-mode +1)
(diminish 'guru-mode))
(smartparens-mode +1)
(prelude-enable-whitespace)
(prelude-local-comment-auto-fill))