diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-09-29 06:39:59 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-09-29 06:39:59 -0400 |
commit | 524c9f5b3576238925f204e7b8d9f6431679c895 (patch) | |
tree | 65ebc8ba414b0c6c192362d2e7ff7e226162961e /emacs/.config/emacs-kj/init.el | |
parent | 0e8415e13db90259055bc8279bb918c2e3d29b9f (diff) |
Add rainbow delimiters and window bindings
Diffstat (limited to 'emacs/.config/emacs-kj/init.el')
-rw-r--r-- | emacs/.config/emacs-kj/init.el | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el index 757a874..7cdc4a6 100644 --- a/emacs/.config/emacs-kj/init.el +++ b/emacs/.config/emacs-kj/init.el @@ -37,6 +37,10 @@ (tooltip-mode -1) (menu-bar-mode -1)) +(use-package rainbow-delimiters + :defer t + :hook (prog-mode-hook . #'rainbow-delimiters-mode)) + (column-number-mode) (set-fringe-mode 10) (setq next-screen-context-lines 10) @@ -57,6 +61,20 @@ (setq aw-keys '(?a ?o ?e ?u ?i ?d ?h ?t ?n ?s)) ;; dvorak moment ) +(defun kj/split-window-below () + (interactive) + (split-window-below) + (balance-windows) + (other-window 1)) + +(defun kj/split-window-right () + (interactive) + (split-window-right) + (other-window 1)) + +(global-set-key (kbd "C-c a") #'kj/split-window-right) +(global-set-key (kbd "C-c o") #'kj/split-window-below) + (use-package selectrum :init (selectrum-mode +1)) @@ -212,7 +230,7 @@ ;; Optionally configure a different project root function. ;; There are multiple reasonable alternatives to chose from. ;;;; 1. project.el (the default) - ;; (setq consult-project-function #'consult--default-project--function) + (setq consult-project-function #'consult--default-project--function) ;;;; 2. projectile.el (projectile-project-root) ;; (autoload 'projectile-project-root "projectile") ;; (setq consult-project-function (lambda (_) (projectile-project-root))) |