[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode 377d498 107/325: Set variables properly.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode 377d498 107/325: Set variables properly. Lots of duplication. |
Date: |
Sat, 23 Oct 2021 18:48:32 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit 377d498270cd5c92ed92c42c952705146f5baa80
Author: Walter Landry <wlandry@caltech.edu>
Commit: Walter Landry <wlandry@caltech.edu>
Set variables properly. Lots of duplication.
---
ergoemacs-themes.el | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 127 insertions(+), 1 deletion(-)
diff --git a/ergoemacs-themes.el b/ergoemacs-themes.el
index 80c8aba..24a6e65 100644
--- a/ergoemacs-themes.el
+++ b/ergoemacs-themes.el
@@ -150,6 +150,131 @@
(recentf-mode (if noninteractive -1 1))
)
+
+(defun ergoemacs-set-standard-vars ()
+ "Enabled/changed variables/modes"
+ (setq org-CUA-compatible t
+ org-support-shift-select t
+ set-mark-command-repeat-pop t
+ org-special-ctrl-a/e t
+ ido-vertical-define-keys 'C-n-C-p-up-down-left-right
+ scroll-error-top-bottom t
+ initial-scratch-message (substitute-command-keys ";; This buffer is
for notes you don't want to save, and for Lisp evaluation.\n;; If you want to
create a file, visit that file with \\[find-file],\n;; then enter the text in
that file's own buffer.")
+ ;; Remove tutorial and guided tour, since the keys don't apply...
+ fancy-startup-text
+ `((:face (variable-pitch font-lock-comment-face)
+ "Welcome to "
+ :link ("GNU Emacs"
+ ,(lambda (_button) (browse-url
"http://www.gnu.org/software/emacs/";))
+ "Browse http://www.gnu.org/software/emacs/";)
+ ", one component of the "
+ :link
+ ,(lambda ()
+ (if (eq system-type 'gnu/linux)
+ `("GNU/Linux"
+ ,(lambda (_button) (browse-url
"http://www.gnu.org/gnu/linux-and-gnu.html";))
+ "Browse http://www.gnu.org/gnu/linux-and-gnu.html";)
+ `("GNU" ,(lambda (_button) (describe-gnu-project))
+ "Display info on the GNU project")))
+ " operating system.\n\n"
+ "\n"
+ :link ("View Emacs Manual" ,(lambda (_button)
(info-emacs-manual)))
+ "\tView the Emacs manual using Info\n"
+ :link ("Absence of Warranty" ,(lambda (_button)
(describe-no-warranty)))
+ "\tGNU Emacs comes with "
+ :face (variable-pitch (:slant oblique))
+ "ABSOLUTELY NO WARRANTY\n"
+ :face variable-pitch
+ :link ("Copying Conditions" ,(lambda (_button)
(describe-copying)))
+ "\tConditions for redistributing and changing Emacs\n"
+ :link ("Ordering Manuals" ,(lambda (_button)
(view-order-manuals)))
+ "\tPurchasing printed copies of manuals\n"
+ "\n"))
+ ;;
+ fancy-about-text
+ `((:face (variable-pitch font-lock-comment-face)
+ "This is "
+ :link ("GNU Emacs"
+ ,(lambda (_button) (browse-url
"http://www.gnu.org/software/emacs/";))
+ "Browse http://www.gnu.org/software/emacs/";)
+ ", one component of the "
+ :link
+ ,(lambda ()
+ (if (eq system-type 'gnu/linux)
+ `("GNU/Linux"
+ ,(lambda (_button)
+ (browse-url
"http://www.gnu.org/gnu/linux-and-gnu.html";))
+ "Browse http://www.gnu.org/gnu/linux-and-gnu.html";)
+ `("GNU" ,(lambda (_button) (describe-gnu-project))
+ "Display info on the GNU project.")))
+ " operating system.\n"
+ :face (variable-pitch font-lock-builtin-face)
+ "\n"
+ ,(lambda () (emacs-version))
+ "\n"
+ :face (variable-pitch (:height 0.8))
+ ,(lambda () emacs-copyright)
+ "\n\n"
+ :face variable-pitch
+ :link ("Authors"
+ ,(lambda (_button)
+ (view-file (expand-file-name "AUTHORS"
data-directory))
+ (goto-char (point-min))))
+ "\tMany people have contributed code included in GNU Emacs\n"
+ :link ("Contributing"
+ ,(lambda (_button)
+ (view-file (expand-file-name "CONTRIBUTE"
data-directory))
+ (goto-char (point-min))))
+ "\tHow to contribute improvements to Emacs\n"
+ "\n"
+ :link ("GNU and Freedom" ,(lambda (_button)
(describe-gnu-project)))
+ "\tWhy we developed GNU Emacs, and the GNU operating system\n"
+ :link ("Absence of Warranty" ,(lambda (_button)
(describe-no-warranty)))
+ "\tGNU Emacs comes with "
+ :face (variable-pitch (:slant oblique))
+ "ABSOLUTELY NO WARRANTY\n"
+ :face variable-pitch
+ :link ("Copying Conditions" ,(lambda (_button)
(describe-copying)))
+ "\tConditions for redistributing and changing Emacs\n"
+ :link ("Getting New Versions" ,(lambda (_button)
(describe-distribution)))
+ "\tHow to obtain the latest version of Emacs\n"
+ :link ("Ordering Manuals" ,(lambda (_button)
(view-order-manuals)))
+ "\tBuying printed manuals from the FSF\n"
+ "\n"
+ )))
+ (add-hook 'dirtrack-directory-change-hook
'ergoemacs-shell-here-directory-change-hook)
+ (add-hook 'kill-buffer-hook 'ergoemacs-save-buffer-to-recently-closed)
+ (add-hook 'shell-mode-hook 'ergoemacs-shell-here-hook)
+ (add-hook 'eshell-post-command-hook
'ergoemacs-shell-here-directory-change-hook)
+ (delete-selection-mode 1)
+ (setq recentf-menu-before "Close"
+ recentf-menu-items-for-commands
+ (list
+ ["Open Last Closed"
+ ergoemacs-open-last-closed
+ :help "Remove duplicates, and obsoletes files from the recent list"
+ :active t]
+ ["Cleanup list"
+ recentf-cleanup
+ :help "Remove duplicates, and obsoletes files from the recent list"
+ :active t]
+ ["Edit list..."
+ recentf-edit-list
+ :help "Manually remove files from the recent list"
+ :active t]
+ ["Save list now"
+ recentf-save-list
+ :help "Save the list of recently opened files now"
+ :active t]
+ ["Options..."
+ (customize-group "recentf")
+ :help "Customize recently opened files menu and options"
+ :active t]))
+ (recentf-mode (if noninteractive -1 1))
+ )
+
+(add-hook 'ergoemacs-mode-startup-hook #'ergoemacs-set-standard-vars)
+
;;; Fixed components
(ergoemacs-component standard-fixed ()
"Standard Fixed Shortcuts"
@@ -811,7 +936,8 @@
(or
(not (and (boundp 'undo-tree-mode)
undo-tree-mode))
(and (and (boundp 'undo-tree-mode)
undo-tree-mode)
- (null (undo-tree-node-next
(undo-tree-current buffer-undo-tree)))))))
+ (null (undo-tree-node-next
(undo-tree-current buffer-undo-tree))))))
+ :help "Redo last operation")
(redo-sep menu-item "--")
(cut menu-item "Cut" ergoemacs-cut-line-or-region
:help "Delete text in Line/region and copy it
to the clipboard"
- [elpa] externals/ergoemacs-mode 21624e9 269/325: Bug fix for calculate bindings and update for the modes modified, (continued)
- [elpa] externals/ergoemacs-mode 21624e9 269/325: Bug fix for calculate bindings and update for the modes modified, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 3edd1e1 268/325: Save and restore keymaps on startup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 8cfa471 270/325: Use nadvice, as requested by Stephan Monnier, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode c9d4c1b 015/325: Remove ergoemacs-package, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode b2a8bb7 099/325: Make 'compile' the default make target, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 18b3859 121/325: Simplify split-window binding, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode b378df1 105/325: Reindent, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode c973446 124/325: Remove redundant fixed-newline, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode cbfa5a9 115/325: Remove some now obsolete <apps> tests, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 1bd971e 137/325: Remove iswitchb bindings and misc cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 377d498 107/325: Set variables properly. Lots of duplication.,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode c09952e 125/325: Remove all C-h help bindings except ergoemacs-describe-current-theme, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode da06d4f 112/325: Fix more warnings. Remove compatibility with <25.1., Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 9ef7b6d 120/325: Add newlines to scratch message, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 051a0c9 110/325: Hard code more theme==standard, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 1d4ddc3 114/325: Remove M-y bindings for search., Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 766cb61 129/325: Move term bindings into a proper function run as a hook when loading term, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode dd59643 135/325: Modify log-edit mode in a proper function, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 331a359 007/325: Directly bind a bunch of shift keys, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 25dd364 038/325: Remove ergoemacs-command-loop--modal-stack, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 96cb33d 040/325: Remove ergoemacs-command-loop--modal-p, Stefan Monnier, 2021/10/23