ç¶ï¼emacsclientã§windmoveã使ã£ãæã®Shift + <up>åé¡
以åã«ãããããemacs -nw ç°å¢ã§Shift + \<up>ããããªããªãåé¡ã以åã«æ¸ããå 容ã§emacs -nw ã§ç«ã¡ä¸ããå ´åã¯åé¡ãªãç«ã¡ä¸ããããã«ãªãã¾ããã
(define-key input-decode-map "\e[1;2A" [S-up])
ããããããã ã¨emacsclientã®ç°å¢ã§ã¯emacsclientãç«ã¡ä¸ããå´ã§æ¯åå®è¡ãã¦ãããªãã¨èªèãã¦ããã¾ããããããä¸ä¾¿ã ãªãã¨ããã¦ãemacs --daemonã§ç«ã¡ä¸ããæã«è¨å®ããæ¹æ³ã¯ãªããã¨èª¿ã¹ãã¨ããè¦ã¤ããã¾ããã
ã¨ãããã以ä¸ã®è¨å®ããããã°OKã§ãã
(defadvice terminal-init-xterm (around map-S-up-escape-sequence activate) (define-key input-decode-map "\e[1;2A" [S-up]) ad-do-it )
https://groups.google.com/forum/#!topic/gnu.emacs.help/ZGu2MNkJGrI
以åããã®ã°ã«ã¼ãã«å©ããããæ°ãããã»ã»ã»
ã¡ãªã¿ã«emacså¨ãã®aliasã¯ãããªæãã§è¨å®ãã¦ãã¾ããnwç°å¢ã§ä½¿ããã¨ãå¤ãã§ãã
alias emd="emacs --daemon" alias emn="emacs -nw" alias emc="emacsclient -c" alias ekill="emacsclient -e '(progn (defun yes-or-no-p (p) t) (kill-emacs))'"
emdã§ãããemacs --daemonèªä½ã¯æ» å¤ãªãã¨ããªãéãè½ã¨ããªãã§ãããemcã¨ããã®ããªããã¹ãã¬ã¼ã¸ã®ã¡ã¼ã«ã¼ãæ³åãã¦ãã¾ãã¾ãããæ £ãã¦ãã¾ããã
[asin:487311277X:detail]