mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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 "))
|
||||
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
(add-hook 'coffee-mode-hook
|
||||
(lambda ()
|
||||
(fci-mode)
|
||||
(linum-mode t)
|
||||
(setq tab-width 2)))
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
(add-hook 'feature-mode-hook
|
||||
(lambda ()
|
||||
(fci-mode)
|
||||
(linum-mode t)
|
||||
(setq whitespace-action (quote (auto-cleanup)))))
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
(lambda ()
|
||||
(flyspell-prog-mode)
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(fci-mode)))
|
||||
(fci-mode)
|
||||
(linum-mode t)))
|
||||
|
||||
@@ -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)))
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
(add-hook 'js-mode-hook
|
||||
(lambda ()
|
||||
(fci-mode)
|
||||
(linum-mode t)
|
||||
(setq tab-width 2)))
|
||||
|
||||
@@ -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)))
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
(add-hook 'php-mode-hook
|
||||
(lambda ()
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(fci-mode)))
|
||||
(fci-mode)
|
||||
(linum-mode t)))
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user