Move keybindings to a different file
This commit is contained in:
parent
298a7165aa
commit
58c25ac89b
|
@ -0,0 +1,9 @@
|
|||
;;; +keybindings.el -*- lexical-binding: t; -*-
|
||||
;; Custom keybindings
|
||||
;;
|
||||
;; Select target in Makefile compilation as default
|
||||
(map! :leader :n "c c" #'makefile-executor-execute-project-target)
|
||||
;; Keybindings for R markdown polymode
|
||||
(map! :map poly-markdown+R-mode-map
|
||||
:n "RET" #'polymode-eval-chunk
|
||||
:desc "Evaluate code block")
|
|
@ -4,6 +4,8 @@
|
|||
;;
|
||||
;; Load appearance configuration
|
||||
(load! "+ui")
|
||||
;; Load custom keybindings
|
||||
(load! "+keybindings")
|
||||
;; Set projects directories
|
||||
(setq projectile-project-search-path '(("~/Projects" . 2)
|
||||
("~/Documents/Work" . 1)
|
||||
|
@ -31,8 +33,6 @@
|
|||
(defun revert-buffer-no-confirm ()
|
||||
(interactive)
|
||||
(revert-buffer :ignore-auto :noconfirm))
|
||||
;; Select target in Makefile compilation as default
|
||||
(map! :leader :n "c c" #'makefile-executor-execute-project-target)
|
||||
;; Align columns in CSV mode
|
||||
(add-hook 'csv-mode-hook 'csv-align-mode)
|
||||
;; Close compilation buffer if successful
|
||||
|
@ -60,10 +60,6 @@
|
|||
(add-to-list 'projectile-globally-ignored-directories ".direnv"))
|
||||
;; Associate polymode to R markdown files
|
||||
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
|
||||
;; Keybindings for R markdown polymode
|
||||
(map! :map poly-markdown+R-mode-map
|
||||
:n "RET" #'polymode-eval-chunk
|
||||
:desc "Evaluate code block")
|
||||
;; Set clangd as C/C++ LSP
|
||||
(setq lsp-clients-clangd-args '("-j=3"
|
||||
"--background-index"
|
||||
|
|
Loading…
Reference in New Issue