2015年のEmacs - たけぞう瀕死ブログãèªã㧠neotree ç¥ã£ããã ãã©ãneotree ãã£ã¡ãè¯ãã£ãã
** neotree ã£ã¦ä½ ã¾ãã¾ãã¯ãããè¦ã¦ãããã
ä¸ã®ãã£ããã£ã§åããããã«ãneotree 㯠Emacs ä¸ã§ãã£ã¬ã¯ããªããªã¼ã表示ããã elisp ã«ãªãã¾ãããã®æã®ã¿ã¤ãã®æ¡å¼µã«ã¯ãEmacs æ¨æºã® dired ãããã¾ãããneotree 㯠dired ã¨ã¯ç°ãªãã - åºæ¬çã«ã¯ã¦ã£ã³ãã¦ä¸ã§å¸¸é§(常æ表示)ããææ³ - 表示æ©è½ãã¡ã¤ã³ ã¨ãªã£ã¦ãã¦ãdired ã dired+ ã»ã©è±å¯ãªãã¡ã¤ã«æä½æ©è½ã¯æã£ã¦ãã¾ãããã¼ãã¨ãã¦ã¯ãã®ãããã·ã³ãã«ãªæ¹ãåãããããã®ã§å¥½ãã§ããã
** ã¤ã³ã¹ãã¼ã« Cask ã使ã£ã¦ããã®ã§ããã°ãCask ã«
|lisp| (depends-on "neotree") ||< ã追å ããå¾ãã³ãã³ãã©ã¤ã³ã§ |tcsh| $ cask ||< ãå®è¡ããã ãã§ãã
ããã©ã«ãã®ãã¼ãã¤ã³ãã¨ãã¦ã¯ã
|lisp| (global-set-key [f8] 'neotree-toggle) ||< ã追å ãã¦ããã°è¯ãã§ããããããã«ãããF8 ãã¼ãæ¼ããã¨ã§ãã£ã¬ã¯ããªè¡¨ç¤ºç¨ã®ãããã¡ã左端ã«è¡¨ç¤ºãããããã«ãªãã¾ãã
** è¨å® neotree.el ãèªãã§ã¿ã¦ã便å©ããã ãªã¨æã£ãè¨å®ã¯ä»¥ä¸ã®éãã§ãããããããå¾ã§ç°¡åã«ç´¹ä»ãã¦ããã¾ãã
|lisp| ;; é ããã¡ã¤ã«ãããã©ã«ãã§è¡¨ç¤º (setq neo-show-hidden-files t)
;; neotree ã§ãã¡ã¤ã«ãæ°è¦ä½æããå¾ãèªåçã«ãã¡ã¤ã«ãéã (setq neo-create-file-auto-open t)
;; delete-other-window 㧠neotree ã¦ã£ã³ãã¦ãæ¶ããªã (setq neo-persist-show t)
;; ãã¼ãã¤ã³ããã·ã³ãã«ã«ãã (setq neo-keymap-style 'concise)
;; neotree ã¦ã£ã³ãã¦ã表示ããæ¯ã« current file ã®ãããã£ã¬ã¯ããªã表示ãã (setq neo-smart-open t)
;; ãã¶ãã¾ã åããªã https://github.com/jaypei/emacs-neotree/issues/105 (setq neo-vc-integration '(face char))
;; popwin ã¨ã®å ±å (when neo-persist-show (add-hook 'popwin:before-popup-hook (lambda () (setq neo-persist-show nil))) (add-hook 'popwin:after-popup-hook (lambda () (setq neo-persist-show t)))) ||< *** neo-show-hidden-files NeoTree ã¯ããã©ã«ãã§é ããã¡ã¤ã«ã表示ãã¾ããããé ããã¡ã¤ã«è¡¨ç¤ºæ´¾ã¯ãã®å¤æ°ã non-nil ã«ãã¦ãããã¨ã§ããã©ã«ãã§é ããã¡ã¤ã«ã表示ãããããã«ãªãã¾ãã ãªããé ããã¡ã¤ã«ã¨ãã¦å¤æãããæ£è¦è¡¨ç¾ã¯ neo-hidden-regexp-list ãåç §ãã¦ãã ããã
*** neo-create-file-auto-open NeoTree ã¯ããã®ãããã¡ä¸ã§ãã¡ã¤ã«ããã£ã¬ã¯ããªãä½æãããã¨ãã§ãã¾ãã ãã®å¤æ°ã non-nil ã«ãã¦ãããã¨ã§ããã¡ã¤ã«ä½ææããã®ãã¡ã¤ã«ã®ãããã¡ãèªåçã«éãããã«ãªãã¾ãã (non-nil ã®å ´åããã¡ã¤ã«ãä½æãããã®ã¿ã§ã)
*** neo-keymap-style ãã¼ãã¤ã³ãã£ã³ã°ãå¤æ´ãããã¨ãã§ãã¾ãã'default 㨠'concise ã®ã©ã¡ãããè¨å®ã§ãã¾ãã NeoTree ã§ã¯ãåºæ¬çã« 1 æåã®ãã¼ãã¤ã³ãã£ã³ã°ãå®ç¾©ããã¦ããã®ã§ããã'default ã®å ´åããã¡ã¤ã«æä½(ä½æ/åé¤/ãã¡ã¤ã«åå¤æ´/ã³ãã¼)ããªãã C-c ã Prefix ã¨ãã¦å®ç¾©ããã¾ãã ããã 'concise ã«ãããã¨ã§ã1 æåã®ãã¼ãã¤ã³ãã«ãªãã¾ããå ·ä½çã«ã¯ãããªæãã«ãªãã¾ããä»ã®ãã¤ã³ãã£ã³ã°ã¯ 'concise, 'default ã«é¢ãããå ±éã§ãã - C: ã«ã¼ããã£ã¬ã¯ããªã®å¤æ´ - c, +, p: ãã¡ã¤ã«ä½æ - d: ãã¡ã¤ã«åé¤ - r: ãã¡ã¤ã«åå¤æ´ - e: ãã£ã¬ã¯ããªãéã
** neo-smart-open non-nil ã«è¨å®ãããã¨ã§ãNeoTree ã®ã¦ã£ã³ãã¦ãéãç´ã度ã«ãã«ã¬ã³ããã¡ã¤ã«ã®ãã£ã¬ã¯ããªãã«ã¼ãã¨ãã¦è¡¨ç¤ºããªããã¦ããã¾ãã
** neo-vc-integration VC ã¨å ±åããVC ã®ã¹ãã¼ã¿ã¹ã«ãã£ã¦è¡¨ç¤ºã® face çãå¤æ´ãã¦ãããã¿ãããªã®ã§ãããã¾ã ãã¾ãåããªãã¿ããã§ããã - 'wrong type argument listp' error after the last update when enabling vc integration · Issue #105 · jaypei/emacs-neotree · GitHub