aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/emacs/init.el19
1 files changed, 16 insertions, 3 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 1f20241..e9845cb 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -185,9 +185,6 @@
(use-package crux
:bind (("C-c D" . crux-delete-file-and-buffer)))
-;; Org mode directory.
-(setq org-directory "~/org/")
-
;; Show me which functions are available for the key I half-pressed.
(use-package which-key
:custom
@@ -420,6 +417,22 @@
(add-hook hook #'abbrev-mode))
;;;
+;; org
+
+;; Basic variables.
+(setq org-directory "~/org/"
+ org-return-follows-link t)
+
+;; Make sure org follows links even in evil mode and that the `org-cycle'
+;; mapping is preserved.
+(with-eval-after-load 'general
+ (general-define-key
+ :keymaps '(org-mode-map)
+ :states '(normal motion)
+ "RET" 'org-open-at-point
+ "TAB" 'org-cycle))
+
+;;;
;; Tools
;; Enable spelling checks (only on text, not on code).