Introduce general.el & rewrite map!
+ Now uses an overriding keymap for leader keys, so that it is always
available, even outside of normal/visual states. In insert/emacs
states, or in sessions where evil is absent, an alternative prefix is
used for leader/localleader keys. See these variables:
+ doom-leader-prefix
+ doom-leader-alt-prefix
+ doom-localleader-prefix
+ doom-localleader-alt-prefix
+ Keybinds now support alternative prefixes through the new :alt-prefix
property. This is useful for non-evil users and non-normal evil
states. By default, this is M-SPC (leader) and M-SPC m (localleader).
+ Removed +evil-commands flag from config/default (moved to
feature/evil/+commands.el).
+ config/default/+bindings.el has been split into
config/default/+{evil,emacs}-bindings.el, which one is loaded depends
on whether evil is present or not. The latter is blank, but will soon
be populated with a keybinding scheme for non-evil users (perhaps
inspired by #641).
+ The define-key! macro has been replaced; it is now an alias for
general-def.
+ Added unmap! as an alias for general-unbind.
+ The following modifier key conventions are now enforced for
consistency, across all OSes:
alt/option = meta
windows/command = super
It used to be
alt/option = alt
windows/command = meta
Many of the default keybinds have been updated to reflect this switch,
but it is likely to affect personal meta/super keybinds!
The map! macro has also been rewritten to use general-define-key. Here
is what has been changed:
+ map! no longer works with characters, e.g. (map! ?x #'do-something) is
no longer supported. Keys must be kbd-able strings like "C-c x" or
vectors like [?C-c ?x].
+ The :map and :map* properties are now the same thing. If specified
keymaps aren't defined when binding keys, it is automatically
deferred.
+ The way you bind local keybinds has changed:
;; Don't do this
(map! :l "a" #'func-a
:l "b" #'func-b)
;; Do this
(map! :map 'local "a" #'func-a
"b" #'func-b)
+ map! now supports the following new blocks:
+ (:if COND THEN-FORM ELSE-FORM...)
+ (:alt-prefix PREFIX KEYS...) -- this prefix will be used for
non-normal evil states. Equivalent to :non-normal-prefix in general.
+ The way you declare a which-key label for a prefix key has changed:
;; before
(map! :desc "label" :prefix "a" ...)
;; now
(map! :prefix ("a" . "label") ...)
+ It used to be that map! supported binding a key to a key sequence,
like so:
(map! "a" [?x]) ; pressing a is like pressing x
This functionality was removed *temporarily* while I figure out the
implementation.
Addresses: #448, #814, #860
Mentioned in: #940
2018-12-22 03:30:04 -05:00
|
|
|
;;; config/default/+emacs-bindings.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-01-02 23:43:11 +01:00
|
|
|
;; Sensible deafult key bindings for non-evil users
|
2019-03-09 03:28:00 -05:00
|
|
|
(setq doom-leader-alt-key "C-c"
|
|
|
|
doom-localleader-alt-key "C-c l")
|
2019-01-02 23:43:11 +01:00
|
|
|
|
|
|
|
;; persp-mode and projectile in different prefixes
|
2019-03-09 03:28:00 -05:00
|
|
|
(setq persp-keymap-prefix (kbd "C-c w"))
|
2019-01-02 23:43:11 +01:00
|
|
|
(after! projectile
|
|
|
|
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map))
|
|
|
|
|
|
|
|
|
2019-03-09 03:28:00 -05:00
|
|
|
;;
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; Autoloads
|
2019-01-10 13:15:33 +01:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
(autoload 'org-capture-goto-target "org-capture" nil t)
|
2019-01-10 13:15:33 +01:00
|
|
|
|
2019-01-02 23:43:11 +01:00
|
|
|
|
2019-03-09 03:28:00 -05:00
|
|
|
;;
|
|
|
|
;;; Leader keys
|
2019-01-02 23:43:11 +01:00
|
|
|
|
2019-03-09 03:28:00 -05:00
|
|
|
(map! :leader
|
2019-04-19 19:54:14 -04:00
|
|
|
:desc "Evaluate line/region" "e" #'+eval/line-or-region
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
(:prefix ("l" . "<localleader>")) ; bound locally
|
|
|
|
(:prefix ("!" . "checkers")) ; bound by flycheck
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2020-01-01 23:30:56 +01:00
|
|
|
;;; <leader> c --- code
|
|
|
|
(:prefix-map ("c" . "code")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Compile" "c" #'compile
|
|
|
|
:desc "Recompile" "C" #'recompile
|
|
|
|
:desc "Jump to definition" "d" #'+lookup/definition
|
|
|
|
:desc "Jump to references" "D" #'+lookup/references
|
|
|
|
:desc "Evaluate buffer/region" "e" #'+eval/buffer-or-region
|
|
|
|
:desc "Evaluate & replace region" "E" #'+eval/region-and-replace
|
|
|
|
:desc "Format buffer/region" "f" #'+format/region-or-buffer
|
2020-06-24 02:00:27 +09:00
|
|
|
:desc "Find implementations" "i" #'+lookup/implementations
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Jump to documentation" "k" #'+lookup/documentation
|
|
|
|
:desc "Send to repl" "s" #'+eval/send-region-to-repl
|
2020-06-24 02:00:27 +09:00
|
|
|
:desc "Find type definition" "t" #'+lookup/type-definition
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Delete trailing whitespace" "w" #'delete-trailing-whitespace
|
|
|
|
:desc "Delete trailing newlines" "W" #'doom/delete-trailing-newlines
|
|
|
|
:desc "List errors" "x" #'flymake-show-diagnostics-buffer
|
|
|
|
(:when (featurep! :checkers syntax)
|
|
|
|
:desc "List errors" "x" #'flycheck-list-errors)
|
2020-05-18 19:43:01 +02:00
|
|
|
(:when (and (featurep! :tools lsp) (not (featurep! :tools lsp +eglot)))
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "LSP Code actions" "a" #'lsp-execute-code-action
|
2020-06-24 02:00:27 +09:00
|
|
|
:desc "LSP Organize imports" "o" #'lsp-organize-imports
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "LSP Rename" "r" #'lsp-rename
|
2020-08-27 17:44:58 -04:00
|
|
|
:desc "LSP" "l" #'+default/lsp-command-map
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :completion ivy)
|
|
|
|
:desc "Jump to symbol in current workspace" "j" #'lsp-ivy-workspace-symbol
|
|
|
|
:desc "Jump to symbol in any workspace" "J" #'lsp-ivy-global-workspace-symbol)
|
|
|
|
(:when (featurep! :completion helm)
|
|
|
|
:desc "Jump to symbol in current workspace" "j" #'helm-lsp-workspace-symbol
|
2021-04-04 23:16:37 -03:00
|
|
|
:desc "Jump to symbol in any workspace" "J" #'helm-lsp-global-workspace-symbol)
|
2021-07-09 20:16:11 +03:00
|
|
|
(:when (featurep! :completion vertico)
|
2021-04-25 17:10:07 +03:00
|
|
|
:desc "Jump to symbol in current workspace" "j" #'consult-lsp-symbols
|
|
|
|
:desc "Jump to symbol in any workspace" "J" (cmd! #'consult-lsp-symbols '(4)))
|
2021-04-04 23:16:37 -03:00
|
|
|
(:when (featurep! :ui treemacs +lsp)
|
|
|
|
:desc "Errors list" "X" #'lsp-treemacs-errors-list
|
|
|
|
:desc "Incoming call hierarchy" "y" #'lsp-treemacs-call-hierarchy
|
|
|
|
:desc "Outgoing call hierarchy" "Y" (cmd!! #'lsp-treemacs-call-hierarchy t)
|
|
|
|
:desc "References tree" "R" (cmd!! #'lsp-treemacs-references t)
|
|
|
|
:desc "Symbols" "S" #'lsp-treemacs-symbols))
|
2020-05-06 23:52:43 +02:00
|
|
|
(:when (featurep! :tools lsp +eglot)
|
|
|
|
:desc "LSP Execute code action" "a" #'eglot-code-actions
|
|
|
|
:desc "LSP Rename" "r" #'eglot-rename
|
2020-05-29 16:52:31 +09:00
|
|
|
:desc "LSP Find declaration" "j" #'eglot-find-declaration))
|
2020-01-01 23:30:56 +01:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> f --- file
|
|
|
|
(:prefix-map ("f" . "file")
|
2020-05-11 12:58:33 +02:00
|
|
|
(:when (featurep! :tools editorconfig)
|
|
|
|
:desc "Open project editorconfig" "c" #'editorconfig-find-current-editorconfig)
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Copy this file" "C" #'doom/copy-this-file
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Find directory" "d" #'dired
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Delete this file" "D" #'doom/delete-this-file
|
2020-11-18 19:56:47 -05:00
|
|
|
:desc "Find file in emacs.d" "e" #'doom/find-file-in-emacsd
|
|
|
|
:desc "Browse emacs.d" "E" #'doom/browse-in-emacsd
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Find file" "f" #'find-file
|
|
|
|
:desc "Find file from here" "F" #'+default/find-file-under-here
|
|
|
|
:desc "Locate file" "l" #'locate
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Rename/move this file" "m" #'doom/move-this-file
|
2021-02-04 15:55:58 +08:00
|
|
|
:desc "Find file in private config" "p" #'doom/find-file-in-private-config
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Browse private config" "P" #'doom/open-private-config
|
|
|
|
:desc "Recent files" "r" #'recentf-open-files
|
|
|
|
:desc "Recent project files" "R" #'projectile-recentf
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Sudo this file" "u" #'doom/sudo-this-file
|
|
|
|
:desc "Sudo find file" "U" #'doom/sudo-find-file
|
2021-03-04 21:27:36 +00:00
|
|
|
:desc "Yank file path" "y" #'+default/yank-buffer-path
|
|
|
|
:desc "Yank file path from project" "Y" #'+default/yank-buffer-path-relative-to-project
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Open scratch buffer" "x" #'doom/open-scratch-buffer
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Switch to scratch buffer" "X" #'doom/switch-to-scratch-buffer)
|
2019-07-17 18:01:22 +02:00
|
|
|
|
2019-12-21 14:34:44 -08:00
|
|
|
;;; <leader> r --- remote
|
|
|
|
(:when (featurep! :tools upload)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:prefix-map ("r" . "remote")
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Browse remote" "b" #'ssh-deploy-browse-remote-base-handler
|
|
|
|
:desc "Browse relative" "B" #'ssh-deploy-browse-remote-handler
|
|
|
|
:desc "Download remote" "d" #'ssh-deploy-download-handler
|
|
|
|
:desc "Delete local & remote" "D" #'ssh-deploy-delete-handler
|
|
|
|
:desc "Eshell base terminal" "e" #'ssh-deploy-remote-terminal-eshell-base-handler
|
|
|
|
:desc "Eshell relative terminal" "E" #'ssh-deploy-remote-terminal-eshell-handler
|
|
|
|
:desc "Move/rename local & remote" "m" #'ssh-deploy-rename-handler
|
|
|
|
:desc "Open this file on remote" "o" #'ssh-deploy-open-remote-file-handler
|
|
|
|
:desc "Run deploy script" "s" #'ssh-deploy-run-deploy-script-handler
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Upload local" "u" #'ssh-deploy-upload-handler
|
|
|
|
:desc "Upload local (force)" "U" #'ssh-deploy-upload-handler-forced
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Diff local & remote" "x" #'ssh-deploy-diff-handler
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Browse remote files" "." #'ssh-deploy-browse-remote-handler
|
|
|
|
:desc "Detect remote changes" ">" #'ssh-deploy-remote-changes-handler))
|
2019-12-21 14:34:44 -08:00
|
|
|
|
2019-12-21 15:32:24 -08:00
|
|
|
;;; <leader> s --- search
|
|
|
|
(:prefix-map ("s" . "search")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Search project for symbol" "." #'+default/search-project-for-symbol-at-point
|
2021-05-17 15:44:39 +03:00
|
|
|
:desc "Search buffer" "b"
|
2021-07-26 14:43:17 -04:00
|
|
|
(cond ((featurep! :completion vertico) #'consult-line)
|
2021-05-17 15:44:39 +03:00
|
|
|
((featurep! :completion ivy) #'swiper)
|
2021-07-26 14:43:17 -04:00
|
|
|
((featurep! :completion helm) #'swiper))
|
2021-05-17 15:44:39 +03:00
|
|
|
:desc "Search all open buffers" "B"
|
2021-07-26 14:43:17 -04:00
|
|
|
(cond ((featurep! :completion ivy) #'swiper-all)
|
|
|
|
((featurep! :completion helm) #'swiper-all))
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Search current directory" "d" #'+default/search-cwd
|
|
|
|
:desc "Search other directory" "D" #'+default/search-other-cwd
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Locate file" "f" #'+lookup/file
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Jump to symbol" "i" #'imenu
|
|
|
|
:desc "Jump to visible link" "l" #'link-hint-open-link
|
|
|
|
:desc "Jump to link" "L" #'ffap-menu
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Jump to bookmark" "m" #'bookmark-jump
|
|
|
|
:desc "Look up online" "o" #'+lookup/online
|
|
|
|
:desc "Look up online (w/ prompt)" "O" #'+lookup/online-select
|
|
|
|
:desc "Look up in local docsets" "k" #'+lookup/in-docsets
|
|
|
|
:desc "Look up in all docsets" "K" #'+lookup/in-all-docsets
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Search project" "p" #'+default/search-project
|
|
|
|
:desc "Search other project" "P" #'+default/search-other-project
|
2020-07-31 12:55:29 +07:00
|
|
|
:desc "Search buffer" "s" #'+default/search-buffer
|
2021-05-17 15:44:39 +03:00
|
|
|
:desc "Search buffer for thing at point" "S"
|
2021-07-26 14:43:17 -04:00
|
|
|
(cond ((featurep! :completion vertico) #'+vertico/search-symbol-at-point)
|
2021-05-17 15:44:39 +03:00
|
|
|
((featurep! :completion ivy) #'swiper-isearch-thing-at-point)
|
2021-07-26 14:43:17 -04:00
|
|
|
((featurep! :completion helm) #'swiper-isearch-thing-at-point))
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Dictionary" "t" #'+lookup/dictionary-definition
|
|
|
|
:desc "Thesaurus" "T" #'+lookup/synonyms)
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2020-01-01 23:30:56 +01:00
|
|
|
;;; <leader> i --- insert
|
|
|
|
(:prefix-map ("i" . "insert")
|
2020-09-30 00:31:14 -07:00
|
|
|
:desc "Emoji" "e" #'emojify-insert-emoji
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Current file name" "f" #'+default/insert-file-path
|
2020-05-27 16:12:45 -04:00
|
|
|
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Snippet" "s" #'yas-insert-snippet
|
2021-05-13 16:50:44 +03:00
|
|
|
:desc "Unicode" "u" #'insert-char
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "From clipboard" "y" #'+default/yank-pop)
|
2020-01-01 23:30:56 +01:00
|
|
|
|
|
|
|
;;; <leader> n --- notes
|
|
|
|
(:prefix-map ("n" . "notes")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Search notes for symbol" "." #'+default/search-notes-for-symbol-at-point
|
|
|
|
:desc "Org agenda" "a" #'org-agenda
|
|
|
|
(:when (featurep! :tools biblio)
|
|
|
|
:desc "Bibliographic entries" "b"
|
2021-07-26 14:43:17 -04:00
|
|
|
(cond ((featurep! :completion vertico) #'bibtex-actions-open-entry)
|
|
|
|
((featurep! :completion ivy) #'ivy-bibtex)
|
|
|
|
((featurep! :completion helm) #'helm-bibtex)))
|
2020-05-04 16:53:26 -04:00
|
|
|
|
2020-07-26 15:55:11 -04:00
|
|
|
:desc "Toggle last org-clock" "c" #'+org/toggle-last-clock
|
|
|
|
:desc "Cancel current org-clock" "C" #'org-clock-cancel
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Open deft" "d" #'deft
|
|
|
|
(:when (featurep! :lang org +noter)
|
|
|
|
:desc "Org noter" "e" #'org-noter)
|
|
|
|
|
|
|
|
:desc "Find file in notes" "f" #'+default/find-in-notes
|
|
|
|
:desc "Browse notes" "F" #'+default/browse-notes
|
|
|
|
:desc "Org store link" "l" #'org-store-link
|
|
|
|
:desc "Tags search" "m" #'org-tags-view
|
|
|
|
:desc "Org capture" "n" #'org-capture
|
|
|
|
:desc "Goto capture" "N" #'org-capture-goto-target
|
|
|
|
:desc "Active org-clock" "o" #'org-clock-goto
|
|
|
|
:desc "Todo list" "t" #'org-todo-list
|
|
|
|
:desc "Search notes" "s" #'+default/org-notes-search
|
|
|
|
:desc "Search org agenda headlines" "S" #'+default/org-notes-headlines
|
|
|
|
:desc "View search" "v" #'org-search-view
|
|
|
|
:desc "Org export to clipboard" "y" #'+org/export-to-clipboard
|
|
|
|
:desc "Org export to clipboard as RTF" "Y" #'+org/export-to-clipboard-as-rich-text
|
|
|
|
(:when (featurep! :lang org +journal)
|
|
|
|
(:prefix ("j" . "journal")
|
2020-09-07 11:59:57 +03:00
|
|
|
:desc "New Entry" "j" #'org-journal-new-entry
|
|
|
|
:desc "New Scheduled Entry" "J" #'org-journal-new-scheduled-entry
|
|
|
|
:desc "Search Forever" "s" #'org-journal-search-forever))
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :lang org +roam)
|
|
|
|
(:prefix ("r" . "roam")
|
2020-06-21 18:57:36 +05:30
|
|
|
:desc "Switch to buffer" "b" #'org-roam-switch-to-buffer
|
|
|
|
:desc "Org Roam Capture" "c" #'org-roam-capture
|
|
|
|
:desc "Find file" "f" #'org-roam-find-file
|
|
|
|
:desc "Show graph" "g" #'org-roam-graph
|
|
|
|
:desc "Insert" "i" #'org-roam-insert
|
|
|
|
:desc "Insert (skipping org-capture)" "I" #'org-roam-insert-immediate
|
|
|
|
:desc "Org Roam" "r" #'org-roam
|
2020-11-22 10:28:24 -08:00
|
|
|
:desc "Tag" "t" #'org-roam-tag-add
|
|
|
|
:desc "Un-tag" "T" #'org-roam-tag-delete
|
2020-05-04 16:53:26 -04:00
|
|
|
(:prefix ("d" . "by date")
|
2020-12-02 18:37:34 +01:00
|
|
|
:desc "Arbitrary date" "d" #'org-roam-dailies-find-date
|
|
|
|
:desc "Today" "t" #'org-roam-dailies-find-today
|
|
|
|
:desc "Tomorrow" "m" #'org-roam-dailies-find-tomorrow
|
2021-07-19 00:53:07 +03:00
|
|
|
:desc "Yesterday" "y" #'org-roam-dailies-find-yesterday)))
|
|
|
|
(:when (featurep! :lang org +roam2)
|
|
|
|
(:prefix ("r" . "roam")
|
|
|
|
:desc "Open random node" "a" #'org-roam-node-random
|
|
|
|
:desc "Find node" "f" #'org-roam-node-find
|
|
|
|
:desc "Find ref" "F" #'org-roam-ref-find
|
|
|
|
:desc "Show graph" "g" #'org-roam-graph
|
|
|
|
:desc "Insert node" "i" #'org-roam-node-insert
|
|
|
|
:desc "Capture to node" "n" #'org-roam-capture
|
|
|
|
:desc "Toggle roam buffer" "r" #'org-roam-buffer-toggle
|
2021-07-24 01:17:14 +03:00
|
|
|
:desc "Launch roam buffer" "R" #'org-roam-buffer-display-dedicated
|
2021-07-19 00:53:07 +03:00
|
|
|
:desc "Sync database" "s" #'org-roam-db-sync
|
|
|
|
(:prefix ("d" . "by date")
|
|
|
|
:desc "Goto previous note" "b" #'org-roam-dailies-goto-previous-note
|
|
|
|
:desc "Goto date" "d" #'org-roam-dailies-goto-date
|
|
|
|
:desc "Capture date" "D" #'org-roam-dailies-capture-date
|
|
|
|
:desc "Goto next note" "f" #'org-roam-dailies-goto-next-note
|
|
|
|
:desc "Goto tomorrow" "m" #'org-roam-dailies-goto-tomorrow
|
|
|
|
:desc "Capture tomorrow" "M" #'org-roam-dailies-capture-tomorrow
|
|
|
|
:desc "Capture today" "n" #'org-roam-dailies-capture-today
|
|
|
|
:desc "Goto today" "t" #'org-roam-dailies-goto-today
|
|
|
|
:desc "Capture today" "T" #'org-roam-dailies-capture-today
|
|
|
|
:desc "Goto yesterday" "y" #'org-roam-dailies-goto-yesterday
|
|
|
|
:desc "Capture yesterday" "Y" #'org-roam-dailies-capture-yesterday
|
|
|
|
:desc "Find directory" "-" #'org-roam-dailies-find-directory))))
|
2020-01-01 23:30:56 +01:00
|
|
|
|
|
|
|
;;; <leader> o --- open
|
|
|
|
"o" nil ; we need to unbind it first as Org claims this prefix
|
|
|
|
(:prefix-map ("o" . "open")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Browser" "b" #'browse-url-of-file
|
|
|
|
:desc "Debugger" "d" #'+debugger/start
|
|
|
|
:desc "New frame" "f" #'make-frame
|
|
|
|
:desc "REPL" "r" #'+eval/open-repl-other-window
|
|
|
|
:desc "REPL (same window)" "R" #'+eval/open-repl-same-window
|
|
|
|
:desc "Dired" "-" #'dired-jump
|
|
|
|
(:when (featurep! :ui neotree)
|
|
|
|
:desc "Project sidebar" "p" #'+neotree/open
|
|
|
|
:desc "Find file in project sidebar" "P" #'+neotree/find-this-file)
|
|
|
|
(:when (featurep! :ui treemacs)
|
|
|
|
:desc "Project sidebar" "p" #'+treemacs/toggle
|
|
|
|
:desc "Find file in project rsidebar" "P" #'treemacs-find-file)
|
|
|
|
(:when (featurep! :term shell)
|
|
|
|
:desc "Toggle shell popup" "t" #'+shell/toggle
|
|
|
|
:desc "Open shell here" "T" #'+shell/here)
|
|
|
|
(:when (featurep! :term term)
|
|
|
|
:desc "Toggle terminal popup" "t" #'+term/toggle
|
|
|
|
:desc "Open terminal here" "T" #'+term/here)
|
|
|
|
(:when (featurep! :term vterm)
|
|
|
|
:desc "Toggle vterm popup" "t" #'+vterm/toggle
|
|
|
|
:desc "Open vterm here" "T" #'+vterm/here)
|
|
|
|
(:when (featurep! :term eshell)
|
|
|
|
:desc "Toggle eshell popup" "e" #'+eshell/toggle
|
|
|
|
:desc "Open eshell here" "E" #'+eshell/here)
|
2020-08-20 09:12:45 -07:00
|
|
|
(:when (featurep! :os macos)
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Reveal in Finder" "o" #'+macos/reveal-in-finder
|
|
|
|
:desc "Reveal project in Finder" "O" #'+macos/reveal-project-in-finder
|
|
|
|
:desc "Send to Transmit" "u" #'+macos/send-to-transmit
|
|
|
|
:desc "Send project to Transmit" "U" #'+macos/send-project-to-transmit
|
|
|
|
:desc "Send to Launchbar" "l" #'+macos/send-to-launchbar
|
2020-06-05 22:23:21 +02:00
|
|
|
:desc "Send project to Launchbar" "L" #'+macos/send-project-to-launchbar
|
|
|
|
:desc "Open in iTerm" "i" #'+macos/open-in-iterm)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :tools docker)
|
2020-05-11 11:20:09 -05:00
|
|
|
:desc "Docker" "D" #'docker)
|
|
|
|
(:when (featurep! :email mu4e)
|
|
|
|
:desc "mu4e" "m" #'=mu4e)
|
|
|
|
(:when (featurep! :email notmuch)
|
|
|
|
:desc "notmuch" "m" #'=notmuch)
|
|
|
|
(:when (featurep! :email wanderlust)
|
|
|
|
:desc "wanderlust" "m" #'=wanderlust))
|
|
|
|
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> p --- project
|
|
|
|
(:prefix ("p" . "project")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Search project for symbol" "." #'+default/search-project-for-symbol-at-point
|
|
|
|
:desc "Find file in other project" "F" #'doom/find-file-in-other-project
|
|
|
|
:desc "Search project" "s" #'+default/search-project
|
2020-05-11 23:25:46 +09:00
|
|
|
:desc "List project todos" "t" #'magit-todos-list
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Open project scratch buffer" "x" #'doom/open-project-scratch-buffer
|
|
|
|
:desc "Switch to project scratch buffer" "X" #'doom/switch-to-project-scratch-buffer
|
2020-05-11 23:25:46 +09:00
|
|
|
(:when (and (featurep! :tools taskrunner)
|
|
|
|
(or (featurep! :completion ivy)
|
|
|
|
(featurep! :completion helm)))
|
|
|
|
:desc "List project tasks" "z" #'+taskrunner/project-tasks)
|
2020-05-04 16:53:26 -04:00
|
|
|
;; later expanded by projectile
|
|
|
|
(:prefix ("4" . "in other window"))
|
|
|
|
(:prefix ("5" . "in other frame")))
|
2019-05-19 18:30:40 -04:00
|
|
|
|
|
|
|
;;; <leader> q --- quit/restart
|
|
|
|
(:prefix-map ("q" . "quit/restart")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Restart emacs server" "d" #'+default/restart-server
|
|
|
|
:desc "Delete frame" "f" #'delete-frame
|
|
|
|
:desc "Clear current frame" "F" #'doom/kill-all-buffers
|
|
|
|
:desc "Kill Emacs (and daemon)" "K" #'save-buffers-kill-emacs
|
|
|
|
:desc "Quit Emacs" "q" #'kill-emacs
|
|
|
|
:desc "Save and quit Emacs" "Q" #'save-buffers-kill-terminal
|
|
|
|
:desc "Quick save current session" "s" #'doom/quicksave-session
|
|
|
|
:desc "Restore last session" "l" #'doom/quickload-session
|
|
|
|
:desc "Save session to file" "S" #'doom/save-session
|
|
|
|
:desc "Restore session from file" "L" #'doom/load-session
|
|
|
|
:desc "Restart & restore Emacs" "r" #'doom/restart-and-restore
|
|
|
|
:desc "Restart Emacs" "R" #'doom/restart)
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> & --- snippets
|
|
|
|
(:prefix-map ("&" . "snippets")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "New snippet" "n" #'yas-new-snippet
|
|
|
|
:desc "Insert snippet" "i" #'yas-insert-snippet
|
|
|
|
:desc "Find global snippet" "/" #'yas-visit-snippet-file
|
|
|
|
:desc "Reload snippets" "r" #'yas-reload-all
|
|
|
|
:desc "Create Temp Template" "c" #'aya-create
|
|
|
|
:desc "Use Temp Template" "e" #'aya-expand)
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2020-01-01 23:30:56 +01:00
|
|
|
;;; <leader> t --- toggle
|
|
|
|
(:prefix-map ("t" . "toggle")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Big mode" "b" #'doom-big-font-mode
|
2021-07-12 10:24:31 -04:00
|
|
|
:desc "Fill Column Indicator" "c" #'global-display-fill-column-indicator-mode
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Flymake" "f" #'flymake-mode
|
|
|
|
:desc "Frame fullscreen" "F" #'toggle-frame-fullscreen
|
|
|
|
:desc "Indent style" "I" #'doom/toggle-indent-style
|
|
|
|
:desc "Line numbers" "l" #'doom/toggle-line-numbers
|
2021-07-21 06:50:36 -04:00
|
|
|
:desc "Soft line wrapping" "w" #'visual-line-mode
|
|
|
|
(:when (featurep! :editor word-wrap)
|
|
|
|
:desc "Soft line wrapping" "w" #'+word-wrap-mode)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :checkers syntax)
|
|
|
|
:desc "Flycheck" "f" #'flycheck-mode)
|
|
|
|
(:when (featurep! :ui indent-guides)
|
|
|
|
:desc "Indent guides" "i" #'highlight-indent-guides-mode)
|
2020-05-16 18:24:45 -04:00
|
|
|
(:when (featurep! :ui minimap)
|
|
|
|
:desc "Minimap mode" "m" #'minimap-mode)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :lang org +present)
|
2020-07-16 16:07:16 +02:00
|
|
|
:desc "org-tree-slide mode" "p" #'org-tree-slide-mode)
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Read-only mode" "r" #'read-only-mode
|
2020-08-24 20:36:16 +02:00
|
|
|
(:when (and (featurep! :checkers spell) (not (featurep! :checkers spell +flyspell)))
|
2020-08-21 02:41:41 -04:00
|
|
|
:desc "Spell checker" "s" #'spell-fu-mode)
|
2020-08-24 20:36:16 +02:00
|
|
|
(:when (featurep! :checkers spell +flyspell)
|
|
|
|
:desc "Spell checker" "s" #'flyspell-mode)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :lang org +pomodoro)
|
|
|
|
:desc "Pomodoro timer" "t" #'org-pomodoro)
|
|
|
|
(:when (featurep! :ui zen)
|
2021-02-24 15:51:41 -05:00
|
|
|
:desc "Zen mode" "z" #'+zen/toggle
|
2021-02-25 10:49:09 -05:00
|
|
|
:desc "Zen mode (fullscreen)" "Z" #'+zen/toggle-fullscreen))
|
2019-07-17 18:01:22 +02:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> v --- versioning
|
|
|
|
(:prefix-map ("v" . "versioning")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Git revert file" "R" #'vc-revert
|
2021-03-11 13:41:16 -05:00
|
|
|
:desc "Kill link to remote" "y" #'+vc/browse-at-remote-kill
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Kill link to homepage" "Y" #'+vc/browse-at-remote-kill-homepage
|
|
|
|
(:when (featurep! :ui vc-gutter)
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Git revert hunk" "r" #'git-gutter:revert-hunk
|
|
|
|
:desc "Git stage hunk" "s" #'git-gutter:stage-hunk
|
|
|
|
:desc "Git time machine" "t" #'git-timemachine-toggle
|
|
|
|
:desc "Jump to next hunk" "n" #'git-gutter:next-hunk
|
|
|
|
:desc "Jump to previous hunk" "p" #'git-gutter:previous-hunk)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:when (featurep! :tools magit)
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Magit dispatch" "/" #'magit-dispatch
|
2020-12-11 15:48:43 +04:00
|
|
|
:desc "Magit file dispatch" "." #'magit-file-dispatch
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Forge dispatch" "'" #'forge-dispatch
|
|
|
|
:desc "Magit status" "g" #'magit-status
|
2020-05-24 16:32:19 -04:00
|
|
|
:desc "Magit status here" "G" #'magit-status-here
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Magit file delete" "x" #'magit-file-delete
|
|
|
|
:desc "Magit blame" "B" #'magit-blame-addition
|
|
|
|
:desc "Magit clone" "C" #'magit-clone
|
|
|
|
:desc "Magit fetch" "F" #'magit-fetch
|
2021-07-07 03:13:57 +05:30
|
|
|
:desc "Magit buffer log" "L" #'magit-log-buffer-file
|
2020-05-11 12:58:33 +02:00
|
|
|
:desc "Git stage file" "S" #'magit-stage-file
|
|
|
|
:desc "Git unstage file" "U" #'magit-unstage-file
|
2020-05-04 16:53:26 -04:00
|
|
|
(:prefix ("f" . "find")
|
|
|
|
:desc "Find file" "f" #'magit-find-file
|
|
|
|
:desc "Find gitconfig file" "g" #'magit-find-git-config-file
|
|
|
|
:desc "Find commit" "c" #'magit-show-commit
|
|
|
|
:desc "Find issue" "i" #'forge-visit-issue
|
|
|
|
:desc "Find pull request" "p" #'forge-visit-pullreq)
|
|
|
|
(:prefix ("o" . "open in browser")
|
2021-03-11 13:41:16 -05:00
|
|
|
:desc "Browse file or region" "." #'+vc/browse-at-remote
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Browse homepage" "h" #'+vc/browse-at-remote-homepage
|
|
|
|
:desc "Browse remote" "r" #'forge-browse-remote
|
|
|
|
:desc "Browse commit" "c" #'forge-browse-commit
|
|
|
|
:desc "Browse an issue" "i" #'forge-browse-issue
|
|
|
|
:desc "Browse a pull request" "p" #'forge-browse-pullreq
|
|
|
|
:desc "Browse issues" "I" #'forge-browse-issues
|
|
|
|
:desc "Browse pull requests" "P" #'forge-browse-pullreqs)
|
|
|
|
(:prefix ("l" . "list")
|
|
|
|
(:when (featurep! :tools gist)
|
2020-06-05 16:05:55 -04:00
|
|
|
:desc "List gists" "g" #'gist-list)
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "List repositories" "r" #'magit-list-repositories
|
|
|
|
:desc "List submodules" "s" #'magit-list-submodules
|
|
|
|
:desc "List issues" "i" #'forge-list-issues
|
|
|
|
:desc "List pull requests" "p" #'forge-list-pullreqs
|
|
|
|
:desc "List notifications" "n" #'forge-list-notifications)
|
|
|
|
(:prefix ("c" . "create")
|
|
|
|
:desc "Initialize repo" "r" #'magit-init
|
|
|
|
:desc "Clone repo" "R" #'magit-clone
|
|
|
|
:desc "Commit" "c" #'magit-commit-create
|
|
|
|
:desc "Fixup" "f" #'magit-commit-fixup
|
|
|
|
:desc "Issue" "i" #'forge-create-issue
|
|
|
|
:desc "Pull request" "p" #'forge-create-pullreq)))
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> w --- workspaces/windows
|
|
|
|
(:prefix-map ("w" . "workspaces/windows")
|
2020-06-26 00:38:21 -04:00
|
|
|
(:when (featurep! :ui workspaces)
|
|
|
|
:desc "Display workspaces" "d" #'+workspace/display
|
|
|
|
:desc "Rename workspace" "r" #'+workspace/rename
|
|
|
|
:desc "Create workspace" "c" #'+workspace/new
|
2021-07-08 22:13:13 -07:00
|
|
|
:desc "Create named workspace" "C" #'+workspace/new-named
|
2020-06-26 00:38:21 -04:00
|
|
|
:desc "Delete workspace" "k" #'+workspace/delete
|
|
|
|
:desc "Save workspace" "S" #'+workspace/save
|
|
|
|
:desc "Switch to other workspace" "o" #'+workspace/other
|
|
|
|
:desc "Switch to left workspace" "p" #'+workspace/switch-left
|
|
|
|
:desc "Switch to right workspace" "n" #'+workspace/switch-right
|
|
|
|
:desc "Switch to" "w" #'+workspace/switch-to
|
|
|
|
:desc "Switch to workspace 1" "1" #'+workspace/switch-to-0
|
|
|
|
:desc "Switch to workspace 2" "2" #'+workspace/switch-to-1
|
|
|
|
:desc "Switch to workspace 3" "3" #'+workspace/switch-to-2
|
|
|
|
:desc "Switch to workspace 4" "4" #'+workspace/switch-to-3
|
|
|
|
:desc "Switch to workspace 5" "5" #'+workspace/switch-to-4
|
|
|
|
:desc "Switch to workspace 6" "6" #'+workspace/switch-to-5
|
|
|
|
:desc "Switch to workspace 7" "7" #'+workspace/switch-to-6
|
|
|
|
:desc "Switch to workspace 8" "8" #'+workspace/switch-to-7
|
|
|
|
:desc "Switch to workspace 9" "9" #'+workspace/switch-to-8
|
|
|
|
:desc "Switch to last workspace" "0" #'+workspace/switch-to-final)
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Autosave session" "a" #'doom/quicksave-session
|
|
|
|
:desc "Save session" "s" #'doom/save-session
|
|
|
|
:desc "Load session" "l" #'doom/load-session
|
|
|
|
:desc "Load last autosaved session" "L" #'doom/quickload-session
|
|
|
|
:desc "Undo window config" "u" #'winner-undo
|
2020-06-26 00:38:21 -04:00
|
|
|
:desc "Redo window config" "U" #'winner-redo)
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> m --- multiple cursors
|
2019-03-09 03:28:00 -05:00
|
|
|
(:when (featurep! :editor multiple-cursors)
|
2020-06-02 12:42:58 +02:00
|
|
|
(:prefix-map ("m" . "multiple-cursors")
|
2020-05-04 16:53:26 -04:00
|
|
|
:desc "Edit lines" "l" #'mc/edit-lines
|
|
|
|
:desc "Mark next" "n" #'mc/mark-next-like-this
|
|
|
|
:desc "Unmark next" "N" #'mc/unmark-next-like-this
|
|
|
|
:desc "Mark previous" "p" #'mc/mark-previous-like-this
|
|
|
|
:desc "Unmark previous" "P" #'mc/unmark-previous-like-this
|
|
|
|
:desc "Mark all" "t" #'mc/mark-all-like-this
|
|
|
|
:desc "Mark all DWIM" "m" #'mc/mark-all-like-this-dwim
|
|
|
|
:desc "Edit line endings" "e" #'mc/edit-ends-of-lines
|
|
|
|
:desc "Edit line starts" "a" #'mc/edit-beginnings-of-lines
|
|
|
|
:desc "Mark tag" "s" #'mc/mark-sgml-tag-pair
|
|
|
|
:desc "Mark in defun" "d" #'mc/mark-all-like-this-in-defun
|
|
|
|
:desc "Add cursor w/mouse" "<mouse-1>" #'mc/add-cursor-on-click))
|
2019-03-09 03:28:00 -05:00
|
|
|
|
|
|
|
;; APPs
|
2019-10-11 02:27:42 +03:00
|
|
|
;;; <leader> M --- mu4e
|
2019-05-05 14:11:59 -04:00
|
|
|
(:when (featurep! :email mu4e)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:prefix-map ("M" . "mu4e")
|
|
|
|
:desc "Open email app" "M" #'=mu4e
|
|
|
|
:desc "Compose email" "c" #'+mu4e/compose))
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-10-11 02:27:42 +03:00
|
|
|
;;; <leader> I --- IRC
|
2019-03-09 03:28:00 -05:00
|
|
|
(:when (featurep! :app irc)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:prefix-map ("I" . "irc")
|
|
|
|
:desc "Open irc app" "I" #'=irc
|
|
|
|
:desc "Next unread buffer" "a" #'tracking-next-buffer
|
|
|
|
:desc "Quit irc" "q" #'+irc/quit
|
|
|
|
:desc "Reconnect all" "r" #'circe-reconnect-all
|
|
|
|
:desc "Send message" "s" #'+irc/send-message
|
|
|
|
(:when (featurep! :completion ivy)
|
2021-05-17 15:44:39 +03:00
|
|
|
:desc "Jump to channel" "j" #'+irc/ivy-jump-to-channel)
|
2021-07-09 20:16:11 +03:00
|
|
|
(:when (featurep! :completion vertico)
|
2021-07-09 20:28:40 +03:00
|
|
|
:desc "Jump to channel" "j" #'+irc/vertico-jump-to-channel)))
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; <leader> T --- twitter
|
2019-03-09 03:28:00 -05:00
|
|
|
(:when (featurep! :app twitter)
|
2020-05-04 16:53:26 -04:00
|
|
|
(:prefix-map ("T" . "twitter")
|
|
|
|
:desc "Open twitter app" "T" #'=twitter
|
|
|
|
:desc "Quit twitter" "q" #'+twitter/quit
|
|
|
|
:desc "Rerender twits" "r" #'+twitter/rerender-all
|
|
|
|
:desc "Ace link" "l" #'+twitter/ace-link)))
|
2019-03-09 03:28:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
;;
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; Global & plugin keybinds
|
2019-03-09 03:28:00 -05:00
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
(map! "C-'" #'imenu
|
|
|
|
|
|
|
|
;;; Text scaling
|
|
|
|
"M-+" #'doom/reset-font-size
|
|
|
|
"M-=" #'doom/increase-font-size
|
|
|
|
"M--" #'doom/decrease-font-size
|
|
|
|
|
|
|
|
;;; search
|
2019-03-09 03:28:00 -05:00
|
|
|
(:when (featurep! :completion ivy)
|
2019-05-19 18:30:40 -04:00
|
|
|
"C-S-s" #'swiper
|
|
|
|
"C-S-r" #'ivy-resume)
|
|
|
|
(:when (featurep! :completion helm)
|
|
|
|
"C-S-s" #'swiper-helm
|
|
|
|
"C-S-r" #'helm-resume)
|
2021-07-09 20:16:11 +03:00
|
|
|
(:when (featurep! :completion vertico)
|
2021-07-09 19:59:44 +03:00
|
|
|
"C-S-r" #'vertico-repeat)
|
2019-05-19 18:30:40 -04:00
|
|
|
|
2019-06-01 13:30:18 +02:00
|
|
|
;;; objed
|
|
|
|
(:when (featurep! :editor objed +manual)
|
|
|
|
"M-SPC" #'objed-activate)
|
|
|
|
|
2019-05-19 18:30:40 -04:00
|
|
|
;;; buffer management
|
2019-12-26 14:47:53 -05:00
|
|
|
"C-x b" #'switch-to-buffer
|
|
|
|
"C-x 4 b" #'switch-to-buffer-other-window
|
|
|
|
(:when (featurep! :ui workspaces)
|
|
|
|
"C-x b" #'persp-switch-to-buffer
|
|
|
|
"C-x B" #'switch-to-buffer
|
|
|
|
"C-x 4 B" #'switch-to-buffer-other-window
|
|
|
|
(:when (featurep! :completion ivy)
|
|
|
|
"C-x 4 b" #'+ivy/switch-workspace-buffer-other-window))
|
2020-06-01 18:13:59 -04:00
|
|
|
"C-x C-b" #'ibuffer
|
2019-05-19 18:30:40 -04:00
|
|
|
"C-x K" #'doom/kill-this-buffer-in-all-windows
|
|
|
|
|
|
|
|
;;; company-mode
|
|
|
|
"C-;" #'+company/complete
|
2019-03-09 03:28:00 -05:00
|
|
|
(:after company
|
|
|
|
:map company-active-map
|
|
|
|
"C-o" #'company-search-kill-others
|
|
|
|
"C-n" #'company-select-next
|
|
|
|
"C-p" #'company-select-previous
|
|
|
|
"C-h" #'company-quickhelp-manual-begin
|
|
|
|
"C-S-h" #'company-show-doc-buffer
|
|
|
|
"C-s" #'company-search-candidates
|
|
|
|
"M-s" #'company-filter-candidates
|
2020-02-23 15:41:49 -05:00
|
|
|
[C-tab] #'company-complete-common-or-cycle
|
2019-03-09 03:28:00 -05:00
|
|
|
[tab] #'company-complete-common-or-cycle
|
|
|
|
[backtab] #'company-select-previous
|
2021-07-26 14:43:17 -04:00
|
|
|
"C-RET" (cond ((featurep! :completion vertico) #'completion-at-point)
|
2021-07-09 20:16:11 +03:00
|
|
|
((featurep! :completion ivy) #'counsel-company)
|
2021-07-26 14:43:17 -04:00
|
|
|
((featurep! :completion helm) #'helm-company))
|
|
|
|
"C-<return>" (cond ((featurep! :completion vertico) #'completion-at-point)
|
2021-07-09 20:16:11 +03:00
|
|
|
((featurep! :completion ivy) #'counsel-company)
|
2021-07-26 14:43:17 -04:00
|
|
|
((featurep! :completion helm) #'helm-company))
|
2019-03-09 03:28:00 -05:00
|
|
|
:map company-search-map
|
|
|
|
"C-n" #'company-search-repeat-forward
|
|
|
|
"C-p" #'company-search-repeat-backward
|
2020-05-27 16:12:45 -04:00
|
|
|
"C-s" (cmd! (company-search-abort) (company-filter-candidates)))
|
2019-05-19 18:30:40 -04:00
|
|
|
|
2019-06-01 13:30:18 +02:00
|
|
|
;;; ein notebooks
|
2019-05-19 18:30:40 -04:00
|
|
|
(:after ein:notebook-multilang
|
|
|
|
:map ein:notebook-multilang-mode-map
|
|
|
|
"C-c h" #'+ein/hydra/body)
|
|
|
|
|
|
|
|
;;; expand-region
|
|
|
|
"C-=" #'er/expand-region
|
|
|
|
"C--" #'er/contract-region
|
|
|
|
|
|
|
|
;;; flycheck
|
|
|
|
(:after flycheck
|
|
|
|
:map flycheck-error-list-mode-map
|
|
|
|
"C-n" #'flycheck-error-list-next-error
|
|
|
|
"C-p" #'flycheck-error-list-previous-error
|
|
|
|
"RET" #'flycheck-error-list-goto-error)
|
|
|
|
|
|
|
|
;;; help and info
|
2019-03-09 03:28:00 -05:00
|
|
|
(:after help-mode
|
|
|
|
:map help-mode-map
|
2019-12-30 23:59:46 -05:00
|
|
|
"o" #'link-hint-open-link
|
2019-03-09 03:28:00 -05:00
|
|
|
">" #'help-go-forward
|
2019-03-15 15:02:38 +10:00
|
|
|
"<" #'help-go-back
|
|
|
|
"n" #'forward-button
|
|
|
|
"p" #'backward-button)
|
2019-03-10 23:01:52 +10:00
|
|
|
(:after helpful
|
2019-03-09 03:28:00 -05:00
|
|
|
:map helpful-mode-map
|
2019-12-30 23:59:46 -05:00
|
|
|
"o" #'link-hint-open-link)
|
2019-03-12 14:21:41 +10:00
|
|
|
(:after apropos
|
|
|
|
:map apropos-mode-map
|
2019-12-30 23:59:46 -05:00
|
|
|
"o" #'link-hint-open-link
|
2019-03-12 14:21:41 +10:00
|
|
|
"n" #'forward-button
|
|
|
|
"p" #'backward-button)
|
2019-03-09 03:28:00 -05:00
|
|
|
(:after info
|
|
|
|
:map Info-mode-map
|
2019-12-30 23:59:46 -05:00
|
|
|
"o" #'link-hint-open-link)
|
2019-05-19 18:30:40 -04:00
|
|
|
|
|
|
|
;;; ivy & counsel
|
|
|
|
(:when (featurep! :completion ivy)
|
|
|
|
(:after ivy
|
|
|
|
:map ivy-minibuffer-map
|
2019-10-25 20:24:36 -04:00
|
|
|
"TAB" #'ivy-alt-done
|
|
|
|
"C-g" #'keyboard-escape-quit)
|
2019-05-19 18:30:40 -04:00
|
|
|
(:after counsel
|
|
|
|
:map counsel-ag-map
|
2019-10-25 20:24:36 -04:00
|
|
|
"C-SPC" #'ivy-call-and-recenter ; preview
|
|
|
|
"M-RET" #'+ivy/git-grep-other-window-action)
|
|
|
|
"C-M-y" #'counsel-yank-pop)
|
2019-05-19 18:30:40 -04:00
|
|
|
|
|
|
|
;;; neotree
|
|
|
|
(:when (featurep! :ui neotree)
|
2019-10-25 20:24:36 -04:00
|
|
|
"<f9>" #'+neotree/open
|
|
|
|
"<C-f9>" #'+neotree/find-this-file
|
2019-05-19 18:30:40 -04:00
|
|
|
(:after neotree
|
|
|
|
:map neotree-mode-map
|
2019-10-25 20:24:36 -04:00
|
|
|
"q" #'neotree-hide
|
|
|
|
"RET" #'neotree-enter
|
|
|
|
"SPC" #'neotree-quick-look
|
|
|
|
"v" #'neotree-enter-vertical-split
|
|
|
|
"s" #'neotree-enter-horizontal-split
|
|
|
|
"c" #'neotree-create-node
|
|
|
|
"D" #'neotree-delete-node
|
|
|
|
"g" #'neotree-refresh
|
|
|
|
"r" #'neotree-rename-node
|
|
|
|
"R" #'neotree-refresh
|
|
|
|
"h" #'+neotree/collapse-or-up
|
|
|
|
"l" #'+neotree/expand-or-open
|
|
|
|
"n" #'neotree-next-line
|
|
|
|
"p" #'neotree-previous-line
|
|
|
|
"N" #'neotree-select-next-sibling-node
|
|
|
|
"P" #'neotree-select-previous-sibling-node))
|
2019-05-19 18:30:40 -04:00
|
|
|
|
|
|
|
;;; popups
|
2019-08-29 20:38:56 +02:00
|
|
|
(:when (featurep! :ui popup)
|
|
|
|
"C-x p" #'+popup/other
|
|
|
|
"C-`" #'+popup/toggle
|
|
|
|
"C-~" #'+popup/raise)
|
2019-05-19 18:30:40 -04:00
|
|
|
|
|
|
|
;;; smartparens
|
|
|
|
(:after smartparens
|
|
|
|
:map smartparens-mode-map
|
|
|
|
"C-M-a" #'sp-beginning-of-sexp
|
|
|
|
"C-M-e" #'sp-end-of-sexp
|
|
|
|
"C-M-f" #'sp-forward-sexp
|
|
|
|
"C-M-b" #'sp-backward-sexp
|
|
|
|
"C-M-d" #'sp-splice-sexp
|
|
|
|
"C-M-k" #'sp-kill-sexp
|
2020-11-02 14:37:03 -05:00
|
|
|
"C-M-t" #'sp-transpose-sexp)
|
2019-05-19 18:30:40 -04:00
|
|
|
|
|
|
|
;;; treemacs
|
|
|
|
(:when (featurep! :ui treemacs)
|
|
|
|
"<f9>" #'+treemacs/toggle
|
2020-05-03 13:21:51 -04:00
|
|
|
"<C-f9>" #'treemacs-find-file))
|
2020-10-29 23:35:21 +02:00
|
|
|
|
|
|
|
(map! :leader
|
|
|
|
(:when (featurep! :editor fold)
|
|
|
|
(:prefix ("C-f" . "fold")
|
|
|
|
"C-d" #'vimish-fold-delete
|
|
|
|
"C-a C-d" #'vimish-fold-delete-all
|
|
|
|
"C-f" #'+fold/toggle
|
|
|
|
"C-a C-f" #'+fold/close-all
|
|
|
|
"C-u" #'+fold/open
|
|
|
|
"C-a C-u" #'+fold/open-all)))
|