【发布时间】:2011-04-21 23:19:54
【问题描述】:
我想用 python 和 c 模式自动打开 linum 模式(M-x linum-mode)。 我在 .emacs 中添加了以下代码,但它似乎不起作用。
(defun my-c-mode-common-hook ()
(line-number-mode 1))
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(defun my-python-mode-common-hook ()
(line-number-mode 1))
(add-hook 'python-mode-common-hook 'my-python-mode-common-hook)
可能出了什么问题?
【问题讨论】:
标签: emacs python-mode c-mode