]> code.delx.au - gnu-emacs-elpa/commitdiff
Use eval-after-load rather than require in the remap key sample.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 4 Mar 2012 23:45:55 +0000 (00:45 +0100)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 4 Mar 2012 23:45:55 +0000 (00:45 +0100)
ampc.el

diff --git a/ampc.el b/ampc.el
index 1d1110d5a8abf23f88c154bfc8352ad610e6df4a..3f428dcdc83ef9bf5a1bb24d2d708d726d536d9a 100644 (file)
--- a/ampc.el
+++ b/ampc.el
 ;; ampc-mode-map.  For example, I use a regular QWERTZ German keyboard (layout),
 ;; so I modify `ampc-mode-map' in my init.el like this:
 ;;
-;; (require 'ampc)
-;; (flet ((substitute-ampc-key
-;;         (from to)
-;;         (define-key ampc-mode-map to (lookup-key ampc-mode-map from))
-;;         (define-key ampc-mode-map from nil)))
-;;   (substitute-ampc-key (kbd "z") (kbd "Z"))
-;;   (substitute-ampc-key (kbd "y") (kbd "z"))
-;;   (substitute-ampc-key (kbd "M-y") (kbd "M-z"))
-;;   (substitute-ampc-key (kbd "<") (kbd ";")))
+;; (eval-after-load 'ampc
+;;   '(flet ((substitute-ampc-key
+;;            (from to)
+;;            (define-key ampc-mode-map to (lookup-key ampc-mode-map from))
+;;            (define-key ampc-mode-map from nil)))
+;;      (substitute-ampc-key (kbd "z") (kbd "Z"))
+;;      (substitute-ampc-key (kbd "y") (kbd "z"))
+;;      (substitute-ampc-key (kbd "M-y") (kbd "M-z"))
+;;      (substitute-ampc-key (kbd "<") (kbd ";"))))
 ;;
 ;; If ampc is suspended, you can still use every interactive command that does
 ;; not directly operate on or with the user interace of ampc.  For example it is