[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 59/117: Add ergoemacs-mode-line option
From: |
Matthew Fidler |
Subject: |
[elpa] 59/117: Add ergoemacs-mode-line option |
Date: |
Fri, 25 Jul 2014 13:24:14 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 0ab81990cc357cf7d05b53cfe1b59ee5ffcbd938
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jul 18 06:56:15 2014 -0500
Add ergoemacs-mode-line option
---
ergoemacs-mode.el | 39 ++++++++++++++++++++++++---------------
1 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/ergoemacs-mode.el b/ergoemacs-mode.el
index 9beacda..10aa048 100644
--- a/ergoemacs-mode.el
+++ b/ergoemacs-mode.el
@@ -281,28 +281,37 @@ Valid values are:
(load "ergoemacs-shortcuts"))
(defvar ergoemacs-theme)
+(defcustom ergoemacs-mode-line 'always
+ "Ergoemacs-keybindings minor mode version number used."
+ :type '(choice
+ (const :tag "Always Show Mode Line" t)
+ (const :tag "Do not show layout" no-layout)
+ (const :tag "Never Show Mode Line" nil))
+ :group 'ergoemacs-mode)
(defun ergoemacs-mode-line (&optional text)
"Set ergoemacs-mode-line"
;; (ergoemacs-debug-heading "Set Mode Line to %s" (or text "Default"))
- (if text
+ (let ((new-text (and text (or (and (not ergoemacs-mode-line) "") text))))
+ (if new-text
+ (setq minor-mode-alist
+ (mapcar (lambda(x)
+ (if (not (eq 'ergoemacs-mode (nth 0 x)))
+ x
+ `(ergoemacs-mode ,new-text)))
+ minor-mode-alist))
(setq minor-mode-alist
(mapcar (lambda(x)
(if (not (eq 'ergoemacs-mode (nth 0 x)))
x
- `(ergoemacs-mode ,text)))
- minor-mode-alist))
- (setq minor-mode-alist
- (mapcar (lambda(x)
- (if (not (eq 'ergoemacs-mode (nth 0 x)))
- x
- `(ergoemacs-mode ,(concat
- (if (string= "standard" (or
ergoemacs-theme "standard"))
- " ErgoEmacs"
- (concat " Ergo"
- (upcase (substring
ergoemacs-theme 0 1))
- (substring ergoemacs-theme
1)))
- "[" ergoemacs-keyboard-layout "]"))))
- minor-mode-alist)))
+ `(ergoemacs-mode ,(if (or (not ergoemacs-mode-line)
(eq ergoemacs-mode-line 'no-layout)) ""
+ (concat
+ (if (string= "standard" (or
ergoemacs-theme "standard"))
+ " ErgoEmacs"
+ (concat " Ergo"
+ (upcase (substring
ergoemacs-theme 0 1))
+ (substring
ergoemacs-theme 1)))
+ "[" ergoemacs-keyboard-layout
"]")))))
+ minor-mode-alist))))
(ergoemacs-debug-flush))
(require 'lookup-word-on-internet nil "NOERROR")
- [elpa] 58/117: Remove ergoemacs-read-modal-keymap function, (continued)
- [elpa] 58/117: Remove ergoemacs-read-modal-keymap function, Matthew Fidler, 2014/07/25
- [elpa] 53/117: Don't error on invalid menu., Matthew Fidler, 2014/07/25
- [elpa] 46/117: Install ergoemacs-read-default for every major mode, Matthew Fidler, 2014/07/25
- [elpa] 54/117: Fix menu keybinding preprocessing, Matthew Fidler, 2014/07/25
- [elpa] 57/117: Add first keyword, and use in minibuffer-setup-hook, Matthew Fidler, 2014/07/25
- [elpa] 60/117: Fix byte-compile warning, Matthew Fidler, 2014/07/25
- [elpa] 62/117: Update ergoemacs-mode-line custom description, Matthew Fidler, 2014/07/25
- [elpa] 61/117: Set ergoemacs-mode-line default to t, Matthew Fidler, 2014/07/25
- [elpa] 63/117: Attempt to fix Issue #278, Matthew Fidler, 2014/07/25
- [elpa] 67/117: Fix Issue #278, Matthew Fidler, 2014/07/25
- [elpa] 59/117: Add ergoemacs-mode-line option,
Matthew Fidler <=
- [elpa] 64/117: Add run-hook property, Matthew Fidler, 2014/07/25
- [elpa] 66/117: Allow keymaps to be copied before modifying them, Matthew Fidler, 2014/07/25
- [elpa] 69/117: Fix Issue #279, Matthew Fidler, 2014/07/25
- [elpa] 70/117: Fix unbound keys test, Matthew Fidler, 2014/07/25
- [elpa] 72/117: Add back emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 71/117: Use flat keymaps (start supporting emacs 23?), Matthew Fidler, 2014/07/25
- [elpa] 73/117: Try to make compatible with emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 74/117: Remove debugging for iswitch-buffer, Matthew Fidler, 2014/07/25
- [elpa] 65/117: Allow hooks to be run before modifying keymaps, Matthew Fidler, 2014/07/25
- [elpa] 75/117: Declare some of the package functions to compile cleanly on Emacs 23, Matthew Fidler, 2014/07/25