feat(emacs): Keybinds all around!
This commit is contained in:
@@ -41,10 +41,14 @@
|
|||||||
"c" #'haskell-cabal-visit-file
|
"c" #'haskell-cabal-visit-file
|
||||||
"h s" #'haskell-hoogle-start-server
|
"h s" #'haskell-hoogle-start-server
|
||||||
"h q" #'haskell-hoogle-kill-server)
|
"h q" #'haskell-hoogle-kill-server)
|
||||||
(general-def :keymaps 'interactive-haskell-mode-map
|
(:keymaps 'interactive-haskell-mode-map
|
||||||
:states '(normal insert)
|
:states '(normal insert)
|
||||||
"C-j" #'haskell-interactive-mode-history-next
|
"C-j" #'haskell-interactive-mode-history-next
|
||||||
"C-k" #'haskell-interactive-mode-history-previous)
|
"C-k" #'haskell-interactive-mode-history-previous)
|
||||||
|
(:keymaps 'haskell-mode-map
|
||||||
|
:states 'normal
|
||||||
|
[remap evil-open-above] #'syd-haskell-evil-open-above
|
||||||
|
[remap evil-open-below] #'syd-haskell-evil-open-below)
|
||||||
:config
|
:config
|
||||||
(set-repl-handler! '(haskell-mode haskell-cabal-mode literate-haskell-mode)
|
(set-repl-handler! '(haskell-mode haskell-cabal-mode literate-haskell-mode)
|
||||||
#'syd-haskell-open-repl
|
#'syd-haskell-open-repl
|
||||||
|
|||||||
@@ -354,8 +354,12 @@ interactive call to `eval-expression' is stored.")
|
|||||||
|
|
||||||
(use-package evil-leap
|
(use-package evil-leap
|
||||||
:hook (on-first-input . evil-leap-mode)
|
:hook (on-first-input . evil-leap-mode)
|
||||||
:straight (:type git
|
:load-path "/home/crumb/src/evil-leap"
|
||||||
:host gitlab
|
:straight nil
|
||||||
:repo "msyds/evil-leap"))
|
;; :straight (:type git
|
||||||
|
;; :host gitlab
|
||||||
|
;; :repo "msyds/evil-leap")
|
||||||
|
:config
|
||||||
|
(evil-leap-install-default-keybindings))
|
||||||
|
|
||||||
(provide 'syd-evil)
|
(provide 'syd-evil)
|
||||||
|
|||||||
@@ -184,7 +184,13 @@ See https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html."
|
|||||||
"k" #'org-babel-remove-result
|
"k" #'org-babel-remove-result
|
||||||
"l" `("Links" . ,syd-org-mode-links-map)
|
"l" `("Links" . ,syd-org-mode-links-map)
|
||||||
"t" #'org-todo
|
"t" #'org-todo
|
||||||
"L" #'org-latex-preview)
|
"L" #'org-latex-preview
|
||||||
|
"s t" #'org-set-tags-command
|
||||||
|
"s p" #'org-set-property
|
||||||
|
"s d" #'org-deadline
|
||||||
|
"s s" #'org-schedule
|
||||||
|
"d t" #'org-timestamp
|
||||||
|
"d T" #'org-timestamp-inactive)
|
||||||
(general-define-key
|
(general-define-key
|
||||||
:keymaps 'org-agenda-mode-map
|
:keymaps 'org-agenda-mode-map
|
||||||
:states '(normal visual motion emacs insert)
|
:states '(normal visual motion emacs insert)
|
||||||
@@ -287,6 +293,11 @@ See https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html."
|
|||||||
{ max-height: 100%
|
{ max-height: 100%
|
||||||
; max-width: 100%
|
; max-width: 100%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.figure img
|
||||||
|
{ max-height: 100%
|
||||||
|
; max-width: 100%
|
||||||
|
}
|
||||||
</style>"
|
</style>"
|
||||||
"A default style for Org HTML exports.")
|
"A default style for Org HTML exports.")
|
||||||
|
|
||||||
@@ -319,6 +330,8 @@ See https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html."
|
|||||||
(0.0 . org-upcoming-distant-deadline)))
|
(0.0 . org-upcoming-distant-deadline)))
|
||||||
(org-agenda-window-setup 'current-window)
|
(org-agenda-window-setup 'current-window)
|
||||||
(org-refile-use-outline-path t)
|
(org-refile-use-outline-path t)
|
||||||
|
(org-tag-persistent-alist `(("orgmode" . ?o)
|
||||||
|
("hrt" . ?h)))
|
||||||
(org-agenda-skip-unavailable-files t)
|
(org-agenda-skip-unavailable-files t)
|
||||||
;; Shift the agenda to show the previous 3 days and the next 7 days
|
;; Shift the agenda to show the previous 3 days and the next 7 days
|
||||||
;; for better context on your week. The past is less important than
|
;; for better context on your week. The past is less important than
|
||||||
@@ -409,7 +422,9 @@ See https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html."
|
|||||||
;; available even outside of Org-mode.
|
;; available even outside of Org-mode.
|
||||||
(general-def
|
(general-def
|
||||||
:prefix-map 'syd-leader-notes-roam-map
|
:prefix-map 'syd-leader-notes-roam-map
|
||||||
"f" #'org-roam-node-find)
|
"f" #'org-roam-node-find
|
||||||
|
"d t" #'org-roam-dailies-capture-today
|
||||||
|
"d T" #'org-roam-dailies-goto-today)
|
||||||
|
|
||||||
(general-def
|
(general-def
|
||||||
:keymaps 'syd-leader-open-map
|
:keymaps 'syd-leader-open-map
|
||||||
@@ -440,10 +455,11 @@ See https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html."
|
|||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:hook (org-load . syd-org-init-roam-h)
|
:hook (org-load . syd-org-init-roam-h)
|
||||||
:commands (org-roam-buffer-toggle-display
|
:commands (org-roam-buffer-toggle-display
|
||||||
org-roam-dailies-find-date
|
org-roam-dailies-capture-today
|
||||||
org-roam-dailies-find-today
|
org-roam-dailies-goto-date
|
||||||
org-roam-dailies-find-tomorrow
|
org-roam-dailies-goto-today
|
||||||
org-roam-dailies-find-yesterday)
|
org-roam-dailies-goto-tomorrow
|
||||||
|
org-roam-dailies-goto-yesterday)
|
||||||
:init (progn (syd-org--init-roam-keybinds)
|
:init (progn (syd-org--init-roam-keybinds)
|
||||||
(syd-load-packages-incrementally
|
(syd-load-packages-incrementally
|
||||||
'(ansi-color dash f rx seq magit-section emacsql)))
|
'(ansi-color dash f rx seq magit-section emacsql)))
|
||||||
@@ -453,7 +469,11 @@ See https://lists.gnu.org/archive/html/emacs-orgmode/2019-07/msg00081.html."
|
|||||||
;; Make org-roam buffer sticky; i.e. don't replace it when opening a
|
;; Make org-roam buffer sticky; i.e. don't replace it when opening a
|
||||||
;; file with an *-other-window command.
|
;; file with an *-other-window command.
|
||||||
(org-roam-buffer-window-parameters '((no-delete-other-windows . t)))
|
(org-roam-buffer-window-parameters '((no-delete-other-windows . t)))
|
||||||
(org-roam-completion-everywhere t))
|
(org-roam-completion-everywhere t)
|
||||||
|
(org-roam-dailies-capture-templates
|
||||||
|
`(("d" "default" entry "* %?\n%U"
|
||||||
|
:target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>")
|
||||||
|
:empty-lines 1))))
|
||||||
:config
|
:config
|
||||||
(defun syd-org-init-roam-h ()
|
(defun syd-org-init-roam-h ()
|
||||||
"Setup `org-roam' but don't immediately initialize its database. Instead,
|
"Setup `org-roam' but don't immediately initialize its database. Instead,
|
||||||
|
|||||||
@@ -31,7 +31,10 @@
|
|||||||
:hook (lsp-mode . lsp-enable-which-key-integration)
|
:hook (lsp-mode . lsp-enable-which-key-integration)
|
||||||
:commands lsp
|
:commands lsp
|
||||||
:general (:keymaps 'syd-leader-code-map
|
:general (:keymaps 'syd-leader-code-map
|
||||||
"a" #'lsp-execute-code-action)
|
"a" #'lsp-execute-code-action
|
||||||
|
"r" #'lsp-rename)
|
||||||
|
:custom (; Fixes type error when using rename.
|
||||||
|
(lsp-rename-use-prepare nil))
|
||||||
:config
|
:config
|
||||||
(syd-defadvice syd-lsp-install-server-a ()
|
(syd-defadvice syd-lsp-install-server-a ()
|
||||||
"Override and disbale `lsp-install-server'"
|
"Override and disbale `lsp-install-server'"
|
||||||
|
|||||||
Reference in New Issue
Block a user