emacs 编程入门

在.emacs中加入如下代码:
 
(defun no-e-please ()
(interactive)
(message "Please don't use the letter e"))
(global-set-key (kbd "C-e") 'no-e-please)
  
重新加载.emacs  M-x load-file ~/.emacs
 
 输入快捷键C-e即可看到Please don't use the letter e
 
或在文本中输入(no-e-please)   C-x C-e

posted @ 2012-02-05 14:27  wangkangluo1  阅读(463)  评论(0编辑  收藏  举报