From 3185032f4b47d996faa35e1b7d9b416e8680a045 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 14 Jul 2025 08:53:01 +0200 Subject: emacs: Bring back org-open-at-point for links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was available on my Doom configuration, and I needed it back. Similarly the "TAB" mapping has been brought up as well. Signed-off-by: Miquel Sabaté Solà --- .config/emacs/init.el | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to '.config/emacs') 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 @@ -419,6 +416,22 @@ (dolist (hook '(org-mode-hook text-mode-hook)) (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 -- cgit v1.2.3