diff --git a/nix/configuration/roles/emacs/files/emacs/elisp/base-extensions.el b/nix/configuration/roles/emacs/files/emacs/elisp/base-extensions.el index 3c346c9..3d8927b 100644 --- a/nix/configuration/roles/emacs/files/emacs/elisp/base-extensions.el +++ b/nix/configuration/roles/emacs/files/emacs/elisp/base-extensions.el @@ -51,6 +51,7 @@ ;; Persist history over Emacs restarts. Vertico sorts by history position. (use-package savehist ;; This is an emacs built-in but we're pulling the latest version + :pin gnu :config (savehist-mode)) @@ -60,8 +61,16 @@ (which-key-mode)) (use-package windmove - :config - (windmove-default-keybindings)) + ;; This is an emacs built-in but we're pulling the latest version + :pin gnu + :bind + ( + ("S-" . windmove-up) + ("S-" . windmove-right) + ("S-" . windmove-down) + ("S-" . windmove-left) + ) + ) (setq tramp-default-method "ssh") diff --git a/nix/configuration/roles/emacs/files/emacs/elisp/lang-org.el b/nix/configuration/roles/emacs/files/emacs/elisp/lang-org.el index 59562ee..120b364 100644 --- a/nix/configuration/roles/emacs/files/emacs/elisp/lang-org.el +++ b/nix/configuration/roles/emacs/files/emacs/elisp/lang-org.el @@ -1,16 +1,23 @@ (use-package org :ensure nil :commands org-mode - :bind ( + :bind (:map org-mode-map ("C-c l" . org-store-link) ("C-c a" . org-agenda) - ("C--" . org-timestamp-down) - ("C-=" . org-timestamp-up) + ("S-" . org-shiftup) + ("S-" . org-shiftright) + ("S-" . org-shiftdown) + ("S-" . org-shiftleft) ) :hook ( (org-mode . (lambda () (org-indent-mode +1) - )) + )) + ;; Make windmove work in Org mode: + (org-shiftup-final . windmove-up) + (org-shiftleft-final . windmove-left) + (org-shiftdown-final . windmove-down) + (org-shiftright-final . windmove-right) ) :config (require 'org-tempo)