adding some small keybinding tweaks and esh-autosuggest
This commit is contained in:
parent
754f64e140
commit
81012a9d4a
2 changed files with 64 additions and 32 deletions
55
init.el
55
init.el
|
@ -108,12 +108,14 @@
|
|||
:ensure t
|
||||
:init
|
||||
(doom-modeline-mode 1)
|
||||
(setq doom-modeline-height 35
|
||||
(setq doom-modeline-height 45
|
||||
doom-modeline-bar-width 3
|
||||
all-the-icons-scale-factor 0.9
|
||||
doom-modeline-hud nil
|
||||
doom-modeline-buffer-file-name-style 'file-name
|
||||
doom-modeline-buffer-encoding nil)
|
||||
doom-modeline-buffer-encoding nil
|
||||
doom-modeline-mu4e t
|
||||
doom-modeline-enable-word-count t)
|
||||
(if (daemonp)
|
||||
(add-hook 'after-make-frame-functions
|
||||
(lambda (frame)
|
||||
|
@ -153,6 +155,7 @@
|
|||
;; Please note the list `("-d" "en_US")` contains ACTUAL parameters passed to hunspell
|
||||
;; You could use `("-d" "en_US,en_US-med")` to check with multiple dictionaries
|
||||
'(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_US") nil utf-8)))
|
||||
(add-hook 'org-mode-hook 'chris/org-mode-setup)
|
||||
|
||||
(use-package no-littering)
|
||||
|
||||
|
@ -220,6 +223,7 @@
|
|||
"bi" '(ibuffer :which-key "ibuffer")
|
||||
"tt" '(consult-theme :which-key "choose theme")
|
||||
"tl" '(toggle-truncate-lines :which-key "truncate lines")
|
||||
"ts" '(ispell :which-key "spell check")
|
||||
"ff" '(find-file :which-key "find file")
|
||||
"fb" '(chris/open-bible :which-key "find bible book")
|
||||
"fr" '(consult-recent-file :which-key "recent file")
|
||||
|
@ -262,10 +266,19 @@
|
|||
"RET" 'Info-follow-nearest-node
|
||||
"p" 'Info-prev
|
||||
"n" 'Info-next)
|
||||
(general-def 'normal c++-mode-map
|
||||
(general-def 'normal prog-mode-map
|
||||
:states 'normal
|
||||
:keymaps 'override
|
||||
"go" 'ff-find-other-file))
|
||||
"go" 'ff-find-other-file
|
||||
"TAB" 'indent-according-to-mode)
|
||||
(general-def 'visual prog-mode-map
|
||||
:states 'visual
|
||||
:keymaps 'override
|
||||
"TAB" 'indent-region)
|
||||
(general-def 'insert prog-mode-map
|
||||
:states 'insert
|
||||
:keymaps 'override
|
||||
"TAB" 'indent-according-to-mode))
|
||||
|
||||
(use-package evil-escape
|
||||
:after evil
|
||||
|
@ -344,7 +357,8 @@
|
|||
org-src-window-setup 'other-window
|
||||
org-export-with-broken-links t
|
||||
org-agenda-current-time-string "⭠ now ────────────────"
|
||||
org-log-into-drawer t)
|
||||
org-log-into-drawer t
|
||||
org-latex-active-timestamp-format "\\textit{%s}")
|
||||
|
||||
(add-hook 'org-mode-hook 'chris/org-mode-setup)
|
||||
|
||||
|
@ -478,6 +492,10 @@
|
|||
"gt" 'org-babel-tangle
|
||||
"il" 'org-insert-link
|
||||
"it" 'org-insert-todo-subheading)
|
||||
(chris/leader-keys
|
||||
:states 'normal
|
||||
:keymaps 'org-mode-map
|
||||
"is" 'org-time-stamp)
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
:keymaps 'override
|
||||
|
@ -1205,8 +1223,7 @@ targets."
|
|||
(use-package tempel
|
||||
:bind (("M-+" . tempel-complete) ;; Alternative tempel-expand
|
||||
("M-'" . tempel-insert)
|
||||
("C-M-<return>" . tempel-done)
|
||||
("TAB" . tempel-next))
|
||||
("C-M-<return>" . tempel-done))
|
||||
|
||||
:init
|
||||
|
||||
|
@ -1958,6 +1975,10 @@ targets."
|
|||
(general-def '(normal insert) eshell-mode-map
|
||||
"C-d" 'kill-buffer-and-window))
|
||||
|
||||
(use-package esh-autosuggest
|
||||
:hook (eshell-mode . esh-autosuggest-mode)
|
||||
:ensure t)
|
||||
|
||||
(setq vterm-buffer-name-string "vterm %s")
|
||||
|
||||
(use-package sly
|
||||
|
@ -2327,13 +2348,15 @@ interfere with the default `bongo-playlist-buffer'."
|
|||
:general
|
||||
(chris/leader-keys
|
||||
"oF" 'mastodon)
|
||||
(general-def mastodon-mode-map
|
||||
(general-def 'normal mastodon-mode-map
|
||||
:states 'normal
|
||||
"q" 'bury-buffer
|
||||
"p" 'mastodon-toot
|
||||
"r" 'mastodon-tl--update
|
||||
"b" 'mastodon-toot--toggle-boost
|
||||
"H" 'mastodon-tl--get-home-timeline
|
||||
"F" 'mastodon-tl--get-federated-timeline
|
||||
"v" 'chris/elfeed-bongo-insert-item
|
||||
"N" 'mastodon-notifications--timeline))
|
||||
|
||||
(use-package langtool)
|
||||
|
@ -2380,19 +2403,3 @@ interfere with the default `bongo-playlist-buffer'."
|
|||
gcmh-verbose nil))
|
||||
|
||||
(setq warning-suppress-types '((comp)))
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(pdf-misc-print-program "/usr/bin/lpr")
|
||||
'(pdf-misc-print-program-args '("-o media=Letter" "-o fitplot"))
|
||||
'(safe-local-variable-values
|
||||
'((projectile-project-run-cmd . "./build/bin/presenter")
|
||||
(projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make -j8 --dir build/ && rm -rf ~/.cache/librepresenter/LibrePresenter/qmlcache/"))))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue