home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3b0a6eabf714e15412bc197a4d6d88b574b34ee5
parent 9aef2a2d14fba267990a3c0387fe6771da16c171
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue,  7 Apr 2020 15:48:24 +0200

config-editing.el: smartparens strict on elisp mode

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-editing.el | 17++++++++++-------
Mtools/emacs/config/config-org.el | 3---
2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el @@ -10,7 +10,8 @@ (org-mode . turn-on-smartparens-mode) (prog-mode . turn-on-show-smartparens-mode) (markdown-mode . turn-on-show-smartparens-mode) - (org-mode . turn-on-show-smartparens-mode)) + (org-mode . turn-on-show-smartparens-mode) + (emacs-lisp-mode . turn-on-smartparens-strict-mode)) :config (require 'smartparens-config) @@ -26,21 +27,23 @@ (sp-local-pair "`" "'" :when '(sp-in-string-p sp-in-comment-p)))) ;; -UseSmartParens -(use-package aggressive-indent ; Automatically indent code +;; UseAggressiveIndent +(use-package aggressive-indent :bind ("C-c e i" . aggressive-indent-mode) :hook ((lisp-mode . aggressive-indent-mode) - (emacs-lisp-mode . aggressive-indent-mode) - (clojure-mode . aggressive-indent-mode)) + (emacs-lisp-mode . aggressive-indent-mode)) :config ;; Free C-c C-q, used in Org and in CIDER (unbind-key "C-c C-q" aggressive-indent-mode-map)) +;; -UseAggressiveIndent -(use-package undo-tree ; Show buffer changes as a tree - :defer 1 - :init (global-undo-tree-mode) +;; UseUndoTree +(use-package undo-tree + :hook (after-init . global-undo-tree-mode) :config (setq-default undo-tree-visualizer-timestamps t undo-tree-enable-undo-in-region t)) +;; -UseUndoTree (use-package whitespace :hook ((prog-mode . whitespace-mode)) diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -585,9 +585,6 @@ With prefix argument, also display headlines without a TODO keyword." (file-relative-name file dir)))) ) -(use-package smartparens-org - :after org) - (use-package org-capture-pop-frame :after org)