summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-01-05 23:27:09 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-01-05 23:27:09 +0800
commit8a7b626779a09baaac5af3ec2a0d98d5abe51fb1 (patch)
tree42ac0e2ddc7e4311d7e822d18a3116534683e307
parent9d267c7e2dcf62aef77ba67fbc5ee4fcc97ba164 (diff)
emacs: set linum-mode for c/c++/python major mode
-rw-r--r--emacs4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs b/emacs
index 5df08d9..9ba74e7 100644
--- a/emacs
+++ b/emacs
@@ -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 ()