]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
Enable goto-address-mode
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 28 Aug 2018 18:44:18 +0000 (20:44 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 28 Aug 2018 18:44:18 +0000 (20:44 +0200)
bound to C-c C-o just like org-mode.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index bb46b65b84d3ac297646e0ec8ff8fbe602cad222..b0268df43e1d1bacc2ceea7899dde14d297c2fcf 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -1968,6 +1968,23 @@ executed instead of opened.
                        ( t . emacs)))
 #+END_SRC
 
+* goto-address-mode
+[2018-08-28 Tue 20:34]
+
+#+BEGIN_SRC emacs-lisp :tangle yes
+  (eval-after-load "prog-mode"
+    '(progn
+       (add-hook 'prog-mode-hook 'goto-address-prog-mode)
+       (define-key prog-mode-map "\C-c\C-o" 'goto-address-at-point)))
+  (eval-after-load "eshell-mode"
+    '(progn
+       (add-hook 'eshell-mode 'goto-address-mode)
+       (define-key eshell-mode-map "\C-c\C-o" 'goto-address-at-point)))
+  (eval-after-load "shell-mode"
+    '(progn
+       (add-hook 'shell-mode 'goto-address-mode)
+       (define-key shell-mode-map "\C-c\C-o" 'goto-address-at-point)))
+#+END_SRC
 * CFEngine
 
 #+BEGIN_SRC emacs-lisp :tangle yes