Created
March 8, 2012 03:05
-
-
Save kiwanami/1998307 to your computer and use it in GitHub Desktop.
e2wm plugin for direx file list
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
;;; direx plugin | |
(require 'direx) | |
(require 'direx-project) | |
(setq direx:leaf-icon " " | |
direx:open-icon "▾ " | |
direx:closed-icon "▸ ") | |
(defun e2wm:def-plugin-direx (frame wm winfo) | |
(let* ((buf (e2wm:history-get-main-buffer)) | |
(dbuf (with-current-buffer buf | |
(or | |
(ignore-errors | |
(direx-project:jump-to-project-root-noselect)) | |
(direx:find-directory-noselect | |
(or default-directory ".")))))) | |
(with-current-buffer dbuf | |
(direx:item-expand direx:root-item)) | |
(wlf:set-buffer wm (wlf:window-name winfo) dbuf))) | |
(e2wm:plugin-register 'direx | |
"DireX" | |
'e2wm:def-plugin-direx) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
direx-project 使うように修正してみた