Disable global linum-mode, and only activate it in specific modes where I want it.

This gives me more space in the Speedbar frame as it doesn't show line numbers anymore.
This commit is contained in:
2011-11-15 18:01:39 +00:00
parent 8d55533cde
commit c38d910344
10 changed files with 15 additions and 4 deletions

View File

@@ -27,8 +27,7 @@
;; Highlight current line globally
(global-hl-line-mode t)
;; Display line numbers globally
(global-linum-mode t)
;; Customize line numbers when Emacs runs in console
(if window-system ()
(setq linum+-smart-format "%%%dd " linum+-dynamic-format "%%%dd "))

View File

@@ -4,4 +4,5 @@
(add-hook 'coffee-mode-hook
(lambda ()
(fci-mode)
(linum-mode t)
(setq tab-width 2)))

View File

@@ -3,4 +3,5 @@
(add-hook 'feature-mode-hook
(lambda ()
(fci-mode)
(linum-mode t)
(setq whitespace-action (quote (auto-cleanup)))))

View File

@@ -3,4 +3,5 @@
(lambda ()
(flyspell-prog-mode)
(setq whitespace-action (quote (auto-cleanup)))
(fci-mode)))
(fci-mode)
(linum-mode t)))

View File

@@ -7,3 +7,7 @@
(setq exec-path (cons "/usr/local/bin" exec-path))
(require 'erlang-start)
(require 'erlang-flymake)
(add-hook 'erland-mode-hook
(lambda ()
(linum-mode t)))

View File

@@ -1,4 +1,5 @@
(add-hook 'js-mode-hook
(lambda ()
(fci-mode)
(linum-mode t)
(setq tab-width 2)))

View File

@@ -6,5 +6,6 @@
(lambda ()
(setq whitespace-action nil)
(fci-mode)
(linum-mode t)
(flyspell-mode 1)
(define-key markdown-mode-map (kbd "C-c p") 'markdown-preview)))

View File

@@ -1,4 +1,5 @@
(add-hook 'php-mode-hook
(lambda ()
(setq whitespace-action (quote (auto-cleanup)))
(fci-mode)))
(fci-mode)
(linum-mode t)))

View File

@@ -19,6 +19,7 @@
(flymake-ruby-load)
(flyspell-prog-mode)
(ruby-electric-mode t)
(linum-mode t)
(setq ruby-deep-arglist t)
(setq ruby-deep-indent-paren nil)
(setq c-tab-always-indent nil)

View File

@@ -5,4 +5,5 @@
(add-hook 'yaml-mode-hook
'(lambda ()
(fci-mode)
(linum-mode t)
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent)))