From d8713417b7feb43a706a8d8e329807ac2640d26a Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 6 Dec 2017 21:08:52 +0100 Subject: [PATCH] begin shortcut mode --- .emacs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.emacs b/.emacs index 77cc979..0deadb3 100644 --- a/.emacs +++ b/.emacs @@ -682,6 +682,18 @@ ;; all modes and extensions are located here (setq tvd-lisp-dir (expand-file-name "lisp" user-init-dir)) +;; -------------------------------------------------------------------------------- +;; ** Shortcut Mode - mode specific help about my own customizations + +;; FIXME: complete + +(defun add-shortcut (mode help) + (add-to-list 'shortcut-alist '(mode . help))) + +(defun shortcut () + (interactive) + (message (cdr (assoc major-mode 'shortcut-alist)))) + ;; -------------------------------------------------------------------------------- ;; ** Fontlock-mode - use syntax highlighting on graphical displays