summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-06-04 15:52:23 +0200
committerAlan Pearce2017-06-04 15:52:40 +0200
commit6eaab8ee32bae08831da5040d1f0bf13e815ce65 (patch)
tree1cc72bb1818381357efb44c4c5debfd1b21b00c2 /emacs
parent8eeadd7d1930abb31a330f14f2735a10584998da (diff)
downloaddotfiles-6eaab8ee32bae08831da5040d1f0bf13e815ce65.tar.lz
dotfiles-6eaab8ee32bae08831da5040d1f0bf13e815ce65.tar.zst
dotfiles-6eaab8ee32bae08831da5040d1f0bf13e815ce65.zip
Emacs: Fix org-src keymap init
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org10
1 files changed, 7 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 34f24c4..c6a5934 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1700,9 +1700,7 @@ Org is wünderbar.
 (use-package org
   :bind (("C-c C-a" . org-agenda-list)
          ("C-c a" . org-agenda)
-         ("C-c l" . org-store-link)
-         :map org-src-mode-map
-         ("C-x C-s" . org-edit-src-exit))
+         ("C-c l" . org-store-link))
   :defer 8
   :init (setq org-replace-disputed-keys t
               org-ellipsis "…")
@@ -1746,6 +1744,12 @@ Org is wünderbar.
             (set-register ?o `(file . ,(expand-file-name "organiser.org" org-directory)))
             (add-hook 'org-mode-hook #'turn-on-auto-fill)
             (org-load-modules-maybe t)))
+
+(use-package org-src
+  :ensure nil
+  :after org
+  :config (progn
+            (bind-key "C-x C-s" #'org-edit-src-exit org-src-mode-map)))
 #+END_SRC
 
 **** org-babel