[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 25/35: Fix Issue #271
From: |
Matthew Fidler |
Subject: |
[elpa] 25/35: Fix Issue #271 |
Date: |
Fri, 11 Jul 2014 22:33:29 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 97acd57acdeb25c1c06109de9aaf587e2ab6bb18
Author: Matthew L. Fidler <address@hidden>
Date: Thu Jul 10 08:36:31 2014 -0500
Fix Issue #271
---
ergoemacs-menus.el | 91 +++++++++++++++++++++++++++-------------------------
1 files changed, 47 insertions(+), 44 deletions(-)
diff --git a/ergoemacs-menus.el b/ergoemacs-menus.el
index 72d0f39..29a5de0 100644
--- a/ergoemacs-menus.el
+++ b/ergoemacs-menus.el
@@ -240,47 +240,54 @@ All other modes are assumed to be minor modes or
unimportant.
(package menu-item "Manage Packages" list-packages))))
;;; `File' menu
+(declare-function pr-update-menus "printing.el")
(defun ergoemacs-menu-bar-file-menu ()
"Creates Ergoemacs File Menu"
- (setq ergoemacs-menu-bar-file-menu
- `(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-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)
- (separator4 menu-item "--")
- (split-window-below menu-item "Split Window"
- split-window-below)
- (split-window-right menu-item "Split Window right"
- split-window-right)
- (one-window menu-item "Unsplit Window"
- delete-other-windows)
- (separator5 menu-item "--")
- (execute-command menu-item "Execute Command"
execute-extended-command)
- (repeat-earlier-command menu-item "Repeat Earlier Command"
- repeat-complex-command)
- (separator6 menu-item "--")
- (exit-emacs menu-item "Quit" save-buffers-kill-emacs)
- "File"))
+ (unless ergoemacs-menu-bar-file-menu
+ (setq ergoemacs-menu-bar-file-menu
+ `(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-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)
+ (separator4 menu-item "--")
+ (split-window-below menu-item "Split Window"
+ split-window-below)
+ (split-window-right menu-item "Split Window right"
+ split-window-right)
+ (one-window menu-item "Unsplit Window"
+ delete-other-windows)
+ (separator5 menu-item "--")
+ (execute-command menu-item "Execute Command"
execute-extended-command)
+ (repeat-earlier-command menu-item "Repeat Earlier Command"
+ repeat-complex-command)
+ (separator6 menu-item "--")
+ (exit-emacs menu-item "Quit" save-buffers-kill-emacs)
+ "File"))
+ (define-key global-map [menu-bar file] (cons "File"
ergoemacs-menu-bar-file-menu))
+ (require 'printing nil t)
+ (when (featurep 'printing)
+ (pr-update-menus t))
+ (setq ergoemacs-menu-bar-file-menu (lookup-key global-map [menu-bar
file])))
(ergoemacs-preprocess-menu-keybindings ergoemacs-menu-bar-file-menu))
;;; `Edit' Menu
@@ -941,11 +948,11 @@ All other modes are assumed to be minor modes or
unimportant.
;; Preprocess menu keybindings...
(defvar recentf-mode)
(declare-function recentf-show-menu "recentf.el")
-(declare-function pr-update-menus "printing.el")
(defun ergoemacs-menus-on ()
"Turn on ergoemacs menus instead of emacs menus."
(interactive)
(ergoemacs-menu-bar-file-menu )
+ (define-key global-map [menu-bar file] (cons "File"
ergoemacs-menu-bar-file-menu))
(ergoemacs-preprocess-menu-keybindings ergoemacs-menu-bar-edit-menu)
(ergoemacs-preprocess-menu-keybindings ergoemacs-menu-bar-search-menu)
(ergoemacs-preprocess-menu-keybindings ergoemacs-menu-bar-view-menu)
@@ -953,11 +960,7 @@ All other modes are assumed to be minor modes or
unimportant.
;; Remove help menu
(define-key global-map [menu-bar help-menu]
(cons (if (eq system-type 'darwin) "Help" "?")
ergoemacs-menu-bar-help-menu))
- (define-key global-map [menu-bar file] (cons "File"
ergoemacs-menu-bar-file-menu))
;; Add the Print options
- (require 'printing nil t) ; Load Printing package
- (when (featurep 'printing)
- (pr-update-menus t))
(define-key global-map [menu-bar edit] (cons "Edit"
ergoemacs-menu-bar-edit-menu))
(define-key-after global-map [menu-bar search] (cons "Search"
ergoemacs-menu-bar-search-menu)
'edit)
- [elpa] 19/35: More accessible printer setup (Issue #236 and #235), (continued)
- [elpa] 19/35: More accessible printer setup (Issue #236 and #235), Matthew Fidler, 2014/07/11
- [elpa] 17/35: Add Scroll up/down command for other window, Matthew Fidler, 2014/07/11
- [elpa] 09/35: Change startup messages, Matthew Fidler, 2014/07/11
- [elpa] 21/35: Add load path to batch byte compile, Matthew Fidler, 2014/07/11
- [elpa] 22/35: Fix byte compile warning, Matthew Fidler, 2014/07/11
- [elpa] 23/35: Start modal shift-select (Issue #215), Matthew Fidler, 2014/07/11
- [elpa] 24/35: Fix keys on web-page, Matthew Fidler, 2014/07/11
- [elpa] 18/35: Fix Issue #270, Matthew Fidler, 2014/07/11
- [elpa] 15/35: Misc Code Cleanup, Matthew Fidler, 2014/07/11
- [elpa] 27/35: Use pr-interface when available, Matthew Fidler, 2014/07/11
- [elpa] 25/35: Fix Issue #271,
Matthew Fidler <=
- [elpa] 26/35: Should display the correct key now., Matthew Fidler, 2014/07/11
- [elpa] 28/35: Another attempt to fix the webpage, Matthew Fidler, 2014/07/11
- [elpa] 30/35: Delete Frame/Close Emacs for Alt+f4, Matthew Fidler, 2014/07/11
- [elpa] 29/35: Fix webpage (tested works), Matthew Fidler, 2014/07/11
- [elpa] 32/35: browse-kill-ring-mode no longer needs work-around, Matthew Fidler, 2014/07/11
- [elpa] 31/35: ergoemacs-keyboard-quit calls 【q】 when applicable, Matthew Fidler, 2014/07/11
- [elpa] 35/35: v5.14.7.2 - Removed ergoemacs-pushnew, and use add-to-list for variables that are defined with defvar (Allows work-around of calling adjoin at runtime for emacs 24.1; Thaks to Stefan Monnier for pointing this out). - Expanded ã€ESC】 to exit modes that use ã€q】 for quitting the current operation. This includes many packages like magit and browse-kill-ring. - Expanded ã€Alt+f4】 to close the current frame when it is the only frame present. - Added Recent files menu that includes Open Last Closed ã€Ctl+⇧Shift+T】. - Changed ergoemacs-mode printing to use printing package when available. The file-menu has been replaced - The default theme is now selected automatically (Issue #269) - Show goto-line as ã€Ctl+L】, although the test doesn't work (Issue #265) - Added an option to move lines up and down with ã€Alt+up】, ã€Alt+down】 like Gedit (See #266) - Changed the emacs startup messages to reflect emacs keys (#267) - Other miscellaneous cleanups and fixes, Matthew Fidler, 2014/07/11
- [elpa] 34/35: The translations will fail :(, Matthew Fidler, 2014/07/11
- [elpa] 33/35: Defined variables use add-to-list otherwise pushnew, Matthew Fidler, 2014/07/11