diff options
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))) |