Created
August 11, 2017 03:02
-
-
Save tek-nishi/af4ea71f80d23991f885da3838cc50a5 to your computer and use it in GitHub Desktop.
お手軽キーワード挿入マクロ生成
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; キーワード挿入 | |
(setq my-keywords | |
'( | |
;; ここにキーワードとショートカットキーを列挙する | |
("TODO" "C-x c 1") | |
("FIXME" "C-x c 2") | |
("TIPS" "C-x c 3") | |
("SOURCE" "C-x c 4") | |
("NOTICE" "C-x c 5") | |
)) | |
(require 'cl) | |
(loop for x in my-keywords | |
do (define-key global-map (kbd (nth 1 x)) (concat (car x) ":"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment