root/dotfiles/emacs/kozo-ni/.emacs.d/conf/init-elisp.el @ 26983

Revision 26983, 0.8 kB (checked in by kozo-ni, 5 years ago)

changed shortcut to describe function and variable

Line 
1;; http://d.hatena.ne.jp/rubikitch/20070726
2(require 'install-elisp)
3(setq install-elisp-repository-directory "~/.emacs.d/elisp/")
4
5(add-hook 'emacs-lisp-mode-hook
6          (function
7           (lambda ()
8             (local-set-key "\"" 'electric-pair)
9             (local-set-key "(" 'electric-pair)
10             (local-set-key "{" 'electric-pair)
11             (local-set-key "\C-c\C-n" 'describe-function)
12             (local-set-key "\C-c\C-v" 'describe-variable)
13             )))
14
15(add-hook 'lisp-interaction-mode-hook
16          (function
17           (lambda ()
18             (local-set-key "\"" 'electric-pair)
19             (local-set-key "(" 'electric-pair)
20             (local-set-key "{" 'electric-pair)
21             (local-set-key "\C-c\C-n" 'describe-function)
22             (local-set-key "\C-c\C-v" 'describe-variable)
23             )))
Note: See TracBrowser for help on using the browser.