direx.elをいれてみた
emacsのdiredで不自由していなかったのですが、ちょっとeclipse的なファイラーのようなものが無いものかと探してみましたところなかなか素晴らしいdired.elを見つけてしまい静岡のみんなが欲しがる僕のGentooへいれてみました。インストール
popwinパッケージを先にインストールしておくkarky7 ~ # emerge -pv app-emacs/popwin * IMPORTANT: config file '/etc/portage/package.keywords' needs updating. * See the CONFIGURATION FILES section of the emerge * man page to learn how to update config files. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] app-emacs/popwin-0.5.1 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB * IMPORTANT: 1 news items need reading for repository 'hacking-gentoo'. * IMPORTANT: 13 news items need reading for repository 'gentoo'. * Use eselect news to read news items. karky7 ~ # karky7 ~ # emerge app-emacs/popwin
direx.elを設置
ここからdirex.elをダウンロードしパスの通っている場所へ設置するinit.elへ追加
;; direx-el ;; (use popwin-el devloper ver.) ;; https://github.com/m2ym/direx-el (require 'popwin) (setq display-buffer-function 'popwin:display-buffer) (require 'direx) (setq direx:leaf-icon " " direx:open-icon "- " direx:closed-icon "+ ") (push '(direx:direx-mode :position left :width 40 :dedicated t) popwin:special-display-config) (global-set-key (kbd "C-x C-j") 'direx:jump-to-directory-other-window)
使い方
ほぼDiredと同じ使い方で非常に編集しやすくなりました、C-x C-jでファイラーが左へpopupします、こんな感じですn, C-n,<down> direx:next-node 次のノードを選択する p, C-p,<up> direx:previous-node 前のノードを選択する C-M-n, C-M-<down> direx:next-sibling 次の兄弟ノードを選択する C-M-p, C-M-<up> direx:previous-sibling 前の兄弟ノードを選択する ^, C-M-u, C-M-<left> direx:up-node 親ノードを選択する C-M-d, C-M-<right> direx:down-node 最初の子ノードを選択する f direx:find-node そのノードを現在のウィンドウに開く o direx:find-node-other-window そのノードを別のウィンドウに開く RET direx:maybe-find-node そのノードをトグルする q quit-window ウィンドウを閉じる
ターミナルを有効活用出きるようになりました、また、emacs環境が具合よくなったきがすします
0 件のコメント:
コメントを投稿