10å¹´é Emacs ã使ãç¶ãã¦ãã俺ãæå¾ã«ãã©ãçãããã¼ãã¤ã³ã
å¤æ ãã¼ãã¤ã³ããå«ããªæ¹ã¸
俺ãããããã§ããã®ã¯âãããã§ãã
(global-set-key [C-delete]
'(lambda() (interactive)(kill-buffer (buffer-name))))
æ¬é¡
å®å ¨ã«åèè¨äºï¼ä¸é¨ã«æ²è¼ï¼ã«ã¤ã³ã¹ãã¤ã¢ããã¦ãã¾ãã
è¦ããã«
- ââââãwindmove ã® up,down,left,right (split ãã windowã渡ãæ©ã)
- Shift+ â or â ã¯windowãå·¦å³ã«åå²
- Shift+ âã¯windowãä¸ä¸ã«åå²
- Shift+ âã¯åå²ã解é¤
- Ctrl + â or â 㧠Elscreen ã®ââ移å
ãããè¨å®ãã¾ãã
ãã¨C-[DEL] ã«(lambda() (interactive)(kill-buffer (buffer-name)))
ãå²ãå½ã¦ãã®ã¯æãªããçµæ§æ°ã«å
¥ã£ã¦ã¾ãã
è¦ã¯åé¤ãããããã¡åãæå®ããã¾ã§ããªããã«ã¬ã³ããããã¡ãæ¶ãã£ã¦ãã¨ã§ãã
âããããã³ãããã¦ãã ããã
(global-set-key [S-right] 'split-window-horizontally)
(global-set-key [S-left] 'split-window-horizontally)
(define-key global-map [S-up] 'split-window-vertically)
(define-key global-map [S-down] 'delete-other-windows)
(global-set-key [right] 'windmove-right)
(global-set-key [left] 'windmove-left)
(define-key global-map [up] 'windmove-up)
(define-key global-map [down] 'windmove-down)
(global-set-key [C-backspace] 'switch-to-buffer)
(global-set-key [C-delete] '(lambda() (interactive)(kill-buffer (buffer-name))))
(global-set-key [C-right] 'elscreen-next)
(global-set-key [C-left] 'elscreen-previous)
(global-set-key [C-return] 'find-file)
ã¾ãããã®ãã¿ã¤ãã«ã¯é£ããªãã ã»ã»ã»
ãã¨ã¨ãåãã¦ãã£ãè¨å®ã ãHAHAHA!
åèè¨äº
ä»æ¥ (windmove-default-keybindings) 㧠shift + ã«ã¼ã½ã«ãã¼ã§åå²ããã¦ã£ã³ãã¦ã移åã§ãããã¨ãç¥ã£ã¦é©æãã¦ã¾ãã
Emacs ユーザーの方に質問です。これは便利! と思える elisp プ… - 人力検索はてな
ã«ã¼ã½ã«ãã¼ãæ¼ãã¨ãå³æå ¨ä½ãå¾®å¦ã«ãã¼ã ãã¸ã·ã§ã³ããé¢ãã¦ãã¾ãã¾ããããå ¥åä¸ã«å²ãè¾¼ãã§ãããããªæ©è½ã§ãã¨ããã«ãã¦ãã£ã¦ããã¾ããã
æ¹è¡ãåé¤ãã«ã¼ã½ã«ã®ç§»åããå ¥åä¸ã«ä½¿ãæ©è½ã§ãããããã«ãæãã«ãªã£ã¡ããããã§ãã
ã§ãããä¸æ¦ã¯å ¥åããé¢ãããããªæ©è½ããå²å½ã¦ãã°è¯ãã¨ãããã¨ã«ãªãã¾ãã
åã®å ´åã¯ãã¦ã£ã³ãã¦ãåå²ãããããããã¡ãåãæ¿ãããããã¡ã¤ã«ãèªã¿è¾¼ãã ããã¦ããæã¨ããã®ã¯ãå ¥åããããã¨ããé¢ãã¦ããç¶æ ã§ãã
ãããªããã§ãããããæãã«ãã¾ããã
http://d.hatena.ne.jp/kotorikotoriko/20081103/1225687600
(global-set-key [right] 'split-window-horizontally);;å³ã«ã¼ã½ã«ã横æ¹ååå²ã«å²ãå½ã¦
(global-set-key [left] 'split-window-horizontally);;å³ã¨ãå·¦ã¨ãè¦ããããªãã®ã§ãå·¦ã«ã¼ã½ã«ã横æ¹ååå²ã«å²ãå½ã¦
(define-key global-map [up] 'split-window-vertically);;ä¸ã«ã¼ã½ã«ã縦æ¹ååå²ã«å²ãå½ã¦
(define-key global-map [down] 'delete-other-windows);;ä¸ã«ã¼ã½ã«ãåå²åé¤ã«å²ãå½ã¦ãä¸ã¨ä¸ããããªãè¦ããããã
(global-set-key [C-backspace] 'other-window);;åå²ããã¦ã£ã³ãã¦ã移å
(global-set-key [backspace] 'escreen-goto-next-screen);;escreen ã§æ¬¡ã® screen ã«ç§»å
(global-set-key [C-return] 'muse-project-find-file);;muse ã®ãã¡ã¤ã«ãéãçãªæ©è½ãC-x + C-f ã¨ãã»ã¨ãã©ä½¿ããããªã£ãã