Skip to content

Commit 56cf8e2

Browse files
committed
fixed emacs init bug on emacs24
emacs 24 would fail to detect that global linue mode was installed and the init would crash.
1 parent fc84b7b commit 56cf8e2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

emacsrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@
6262
(desire 'generic-x "generic-x.el")
6363

6464
;; Turn on line numbering (hopefully with linum-mode)
65-
(desire 'linum "linum.el"
66-
'(global-linum-mode 1)
67-
'(global-line-number-mode 1))
65+
(if (boundp 'global-linum-mode)
66+
'(global-linum-mode 1)
67+
(desire 'linum "linum.el"
68+
'(global-linum-mode 1)
69+
'(global-line-number-mode 1)))
6870

6971
;; Set up the color theme
7072
(if (fboundp 'load-theme)

0 commit comments

Comments
 (0)