diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-01-05 23:27:09 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-01-05 23:27:09 +0800 |
commit | 8a7b626779a09baaac5af3ec2a0d98d5abe51fb1 (patch) | |
tree | 42ac0e2ddc7e4311d7e822d18a3116534683e307 | |
parent | 9d267c7e2dcf62aef77ba67fbc5ee4fcc97ba164 (diff) |
emacs: set linum-mode for c/c++/python major mode
-rw-r--r-- | emacs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,7 +8,7 @@ ;; font setting (set-default-font "Bitstream Vera Sans Mono-9") (set-fontset-font (frame-parameter nil 'font) - 'chinese-gbk '("Microsfot Yahei" . "unicode-bmp")) + 'han '("Microsfot Yahei" . "unicode-bmp")) ;; window positioning (setq default-frame-alist '((top . 0) (left . 0) @@ -125,6 +125,7 @@ (lambda () ;; (c-set-style "ljh") (hl-line-mode t) + (linum-mode) ))) (add-hook 'c++-mode-hook (function @@ -137,6 +138,7 @@ (function (lambda () (hl-line-mode t) + (linum-mode) ))) (defun gstreamer-c-mode () |