[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 02/35: Add Open Directory
From: |
Matthew Fidler |
Subject: |
[elpa] 02/35: Add Open Directory |
Date: |
Fri, 11 Jul 2014 22:33:18 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 7fb421d00a818de037ed61ef09104cbac05a3efd
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jul 7 07:23:02 2014 -0500
Add Open Directory
---
ergoemacs-menus.el | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/ergoemacs-menus.el b/ergoemacs-menus.el
index 232fbbb..f204935 100644
--- a/ergoemacs-menus.el
+++ b/ergoemacs-menus.el
@@ -28,6 +28,8 @@
;;
;;; Code:
+(eval-when-compile
+ (require 'cl))
(defvar ergoemacs-xah-emacs-lisp-tutorial-url
"http://ergoemacs.org/emacs/elisp.html")
@@ -241,15 +243,27 @@ All other modes are assumed to be minor modes or
unimportant.
(defun ergoemacs-menu-bar-file-menu ()
"Creates Ergoemacs File Menu"
(setq ergoemacs-menu-bar-file-menu
- '(keymap
+ `(keymap
(new-file menu-item "New" ergoemacs-new-empty-buffer)
(make-frame menu-item "New Frame" make-frame-command)
(open-file menu-item "Open..." find-file)
+ (open-directory menu-item "Open Containing Folder"
+ (keymap
+ ;; FIXME add open in cmd/iTerm/xterm, etc
+ (open-directory-in-dired menu-item "In Dired"
dired-jump)
+ (open-directory-in-desktop
+ menu-item ,(cond
+ ((eq system-type 'windows-nt) "In
Explorer")
+ ((eq system-type 'darwin) "In Finder")
+ ((t "In File Manager")))
+ ergoemacs-open-in-desktop)))
+ ;; FIXME -- Somehow put open last closed in recentf menu; It
+ ;; seems to fit there the best
(open-last-closed menu-item "Open last closed"
ergoemacs-open-last-closed)
(kill-buffer menu-item "Close" ergoemacs-close-current-buffer)
(separator1 menu-item "--")
(save-buffer menu-item "Save" save-buffer)
- (write-file menu-item "Save As..." write-file)
+ (write-file menu-item "Save As..." write-nfile)
(revert-buffer menu-item "Revert to Saved" revert-buffer)
(print-buffer menu-item "Print" ergoemacs-print-buffer-confirm)
;; (ps-print-buffer-faces menu-item "Print (font+color)"
ps-print-buffer-faces)
- [elpa] branch externals/ergoemacs-mode updated (88f1373 -> 7a30c03), Matthew Fidler, 2014/07/11
- [elpa] 02/35: Add Open Directory,
Matthew Fidler <=
- [elpa] 03/35: Fix #267, Matthew Fidler, 2014/07/11
- [elpa] 04/35: Add ~/.emacs and describe using elpa instead of melpa, Matthew Fidler, 2014/07/11
- [elpa] 05/35: Fix Typo in web.org, Matthew Fidler, 2014/07/11
- [elpa] 08/35: Fix Issue #268, Matthew Fidler, 2014/07/11
- [elpa] 06/35: Fix the differences between elpa and manual setup, Matthew Fidler, 2014/07/11
- [elpa] 01/35: Fix key lookup for menus. isearch <-> text search Issue #265., Matthew Fidler, 2014/07/11
- [elpa] 07/35: Reverse the directions, Matthew Fidler, 2014/07/11
- [elpa] 10/35: Add moving lines/region using M-up or M-down. Issue #266, Matthew Fidler, 2014/07/11
- [elpa] 13/35: Misc code cleanup, Matthew Fidler, 2014/07/11
- [elpa] 11/35: Change order to Fix #265 again, Matthew Fidler, 2014/07/11