Browse Source

Various emacs config changes

- load evil after hydra
- use M-RET instead of C-M-j to indent new comment line
- unbind tab to org-cycle (default works)
- do not enforce todo dependancies when exporting agenda
- add fennel mode
- use ess-switch-process instead of request a process
- disable elpy
master
Maxime Wack 1 year ago
parent
commit
5d79466cfc
1 changed files with 15 additions and 7 deletions
  1. +15
    -7
      .config/emacs/init.el

+ 15
- 7
.config/emacs/init.el View File

@@ -263,6 +263,7 @@ OPT is the optional arg to the original function"

(use-package evil
:demand
:after hydra

:init
(evil-mode t)
@@ -437,7 +438,7 @@ OPT is the optional arg to the original function"
"gcc" 'evil-commentary-line)

(:states 'insert
"C-M-j" 'indent-new-comment-line ; Continue comment on next line and add a line
"M-RET" 'indent-new-comment-line ; Continue comment on next line and add a line
"M-j" '(lambda () (interactive) ; Continue comment on next line without adding a new line
(evil-next-line)
(comment-indent)))
@@ -1468,7 +1469,7 @@ So we need to define bindings in a hook."
org-M-RET-may-split-line nil ; RET behavior
org-return-follows-link nil
org-image-actual-width nil
org-id-link-to-org-use-id t ; Generate UUIDs for links when storing link
;; org-id-link-to-org-use-id t ; Generate UUIDs for links when storing link
org-html-checkbox-type 'unicode
org-enforce-todo-checkbox-dependencies nil ; Make todos dependent
org-checkbox-hierarchical-statistics nil ; Recursive checkbox statistics
@@ -1611,7 +1612,6 @@ So we need to define bindings in a hook."
"®" 'outshine-kbd-M-<right>
"ð" 'org-previous-visible-heading
"ß" 'org-next-visible-heading
[tab] 'org-cycle
"<C-return>" 'org-insert-heading-after-current
"M-t" 'org-metaleft
"M-r" 'org-metaright)
@@ -1690,7 +1690,8 @@ A is compared to B."
'(("n" "Agenda and TODOs"
((agenda "")
(alltodo ""))
((org-agenda-skip-function
((org-enforce-todo-dependencies nil)
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'regexp ":notes:"))))
("N" "Local agenda and TODOs"
((agenda "")
@@ -2078,6 +2079,13 @@ If SELECT is non-nil, select the target window."

(use-package company-lua)

;;;;; fennel-mode

(use-package fennel-mode

:config
(add-to-list 'auto-mode-alist '("\\.fnl\\'" . fennel-mode)))

;;;; ESS
;;;;; ESS

@@ -2115,8 +2123,7 @@ If SELECT is non-nil, select the target window."
"rH" 'ess-handy-commands
"rc" 'polymode-eval-region-or-chunk
"ra" 'polymode-eval-buffer-from-beg-to-point
"rs" '((lambda () (interactive) (ess-request-a-process "Process to use: " nil 'ask-if-1))
:which-key "ess-request-a-process")
"rs" 'ess-switch-process
"rq" 'ess-quit
"rd" '(:ignore t :which-key "roxygen Documentation")
"rdd" 'ess-roxy-update-entry
@@ -2297,7 +2304,8 @@ If SELECT is non-nil, select the target window."

(use-package elpy
:init
(elpy-enable))
;; (elpy-enable)
)

;;;; Slime
(use-package slime-company


Loading…
Cancel
Save