diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-07-14 08:53:01 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-07-14 08:53:01 +0200 |
| commit | 3185032f4b47d996faa35e1b7d9b416e8680a045 (patch) | |
| tree | 7979a3959c7774277d6a74d08a8cbfff91591e4f /.config | |
| parent | 6a0a2aac28382c206b3642a1890fd28f774327a3 (diff) | |
| download | dotfiles-3185032f4b47d996faa35e1b7d9b416e8680a045.tar.gz dotfiles-3185032f4b47d996faa35e1b7d9b416e8680a045.zip | |
emacs: Bring back org-open-at-point for links
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à <mikisabate@gmail.com>
Diffstat (limited to '.config')
| -rw-r--r-- | .config/emacs/init.el | 19 |
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). |
