summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el30
1 files changed, 26 insertions, 4 deletions
diff --git a/init.el b/init.el
index 1ec6cf0..7a1e35b 100644
--- a/init.el
+++ b/init.el
@@ -456,6 +456,16 @@
(jao-themes-setup)
;;; Help system
+;;;; which-key
+(use-package which-key
+ :custom
+ (which-key-add-column-padding 2)
+ (which-key-lighter "")
+ (which-key-idle-delay 10000)
+ (which-key-idle-secondary-delay 0.05)
+ (which-key-show-early-on-C-h t)
+ :hook (after-init . which-key-mode))
+
;;;; help buffers
(setq help-window-select t
help-window-keep-selected nil
@@ -1120,7 +1130,10 @@
(use-package spatial-window
:ensure t
- :bind ("M-o" . spatial-window-select))
+ :bind
+ ("M-o" . spatial-window-select)
+ ("C-x o" . spatial-window-select)
+ ("C-x p" . spatial-window-select))
;;;; transposing windows
(defun transpose-windows (arg)
@@ -1312,8 +1325,13 @@
;; used by markdown mode to edit code blocks
(use-package edit-indirect :ensure t)
-(dolist (ext '("\\.md$" "\\.markdown$"))
- (add-to-list 'auto-mode-alist (cons ext 'markdown-mode)))
+;; (dolist (ext '("\\.md$" "\\.markdown$"))
+;; (add-to-list 'auto-mode-alist (cons ext 'markdown-mode)))
+
+(use-package md-ts-mode
+ :ensure t)
+
+(md-ts-mode-enable-global)
;;;; TeX and LaTex
(use-package tex-site
@@ -1627,6 +1645,7 @@
magit-push-always-verify nil
magit-save-repository-buffers 'dontask
magit-section-visibility-indicators '(("…" . t))
+ magit-show-long-lines-warning nil
magit-status-buffer-switch-function 'switch-to-buffer
magit-status-show-hashes-in-headers t))
@@ -1665,7 +1684,10 @@
;;;; toml
(use-package eldoc-toml :ensure t)
(use-package toml-ts-mode
- :config (add-to-list 'auto-mode-alist '("`.*\\.toml" . toml-ts-mode)))
+ :config
+ (add-to-list 'auto-mode-alist '("`.*\\.toml" . toml-ts-mode))
+ (add-hook 'toml-ts-mode-hook 'turn-off-auto-fill))
+
;;;; protobuf
(use-package protobuf-mode :ensure t)