Clean up the modeline a bit with diminish.el

This commit is contained in:
Bozhidar Batsov 2013-03-06 21:43:59 +02:00
parent dfa2d23f23
commit 5803d30af6
6 changed files with 19 additions and 6 deletions

View file

@ -171,6 +171,7 @@
(require 'volatile-highlights)
(volatile-highlights-mode t)
(diminish 'volatile-highlights-mode)
;; note - this should be after volatile-highlights is required
;; add the ability to copy and cut the current line, without marking it
@ -252,6 +253,7 @@
(require 'projectile)
(setq projectile-cache-file (expand-file-name "projectile.cache" prelude-savefile-dir))
(projectile-global-mode t)
(diminish 'projectile-mode "Prjl")
(require 'helm-misc)
(require 'helm-projectile)
@ -352,6 +354,7 @@ indent yanked text (with prefix arg don't indent)."
;; sensible undo
(global-undo-tree-mode)
(diminish 'undo-tree-mode)
;; enable winner-mode to manage window configurations
(winner-mode +1)

View file

@ -110,7 +110,7 @@
"Minor mode to consolidate Emacs Prelude extensions.
\\{prelude-mode-map}"
:lighter " Prelude"
:lighter " Pre"
:keymap prelude-mode-map
(if prelude-mode
;; on start

View file

@ -40,7 +40,7 @@
(package-initialize)
(defvar prelude-packages
'(ace-jump-mode ack-and-a-half elisp-slime-nav exec-path-from-shell
'(ace-jump-mode ack-and-a-half diminish elisp-slime-nav exec-path-from-shell
expand-region flycheck gist
git-commit-mode gitconfig-mode gitignore-mode
guru-mode helm helm-projectile

View file

@ -58,7 +58,8 @@
(run-hooks 'prelude-lisp-coding-hook)
(turn-on-eldoc-mode)
(prelude-remove-elc-on-save)
(rainbow-mode +1))
(rainbow-mode +1)
(setq mode-name "EL"))
(setq prelude-emacs-lisp-mode-hook 'prelude-emacs-lisp-mode-defaults)
@ -75,6 +76,14 @@
(add-hook 'ielm-mode-hook (lambda () (run-hooks 'prelude-ielm-mode-hook)))
(define-key emacs-lisp-mode-map (kbd "M-.") 'find-function-at-point)
(eval-after-load "elisp-slime-nav"
'(diminish 'elisp-slime-nav-mode))
(eval-after-load "rainbow-mode"
'(diminish 'rainbow-mode))
(eval-after-load "eldoc"
'(diminish 'eldoc-mode))
(provide 'prelude-emacs-lisp)
;;; prelude-emacs-lisp.el ends here

View file

@ -53,6 +53,9 @@
(setq prelude-interactive-lisp-coding-hook 'prelude-interactive-lisp-coding-defaults)
(eval-after-load "paredit"
'(diminish 'paredit-mode " π"))
(provide 'prelude-lisp)
;;; prelude-lisp.el ends here

View file

@ -33,9 +33,8 @@
;;; Code:
(require 'prelude-programming)
(prelude-ensure-module-deps '(ruby-tools inf-ruby yari ruby-end ruby-block))
(prelude-ensure-module-deps '(ruby-tools inf-ruby yari ruby-end))
(require 'ruby-block)
;; Rake files are ruby, too, as are gemspecs, rackup files, and gemfiles.
(add-to-list 'auto-mode-alist '("\\.rake\\'" . ruby-mode))
(add-to-list 'auto-mode-alist '("Rakefile\\'" . ruby-mode))
@ -59,7 +58,6 @@
(inf-ruby-setup-keybindings)
;; turn off the annoying input echo in irb
(setq comint-process-echoes t)
(ruby-block-mode t)
(ruby-end-mode +1)
(ruby-tools-mode +1)
;; CamelCase aware editing operations