Skip to content

Commit

Permalink
Fix undo-tree litter and use aggressive-indent
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhu committed Aug 23, 2022
1 parent 041643b commit 747b0a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/005-editing-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

(use-package undo-tree :ensure t
:config (progn
(setq undo-tree-history-directory-alist nil)
(setq undo-tree-auto-save-history nil)
(global-undo-tree-mode)
(diminish-major-mode 'undo-tree-visualizer-mode ""))
:diminish ((undo-tree-mode . "")))
Expand Down
13 changes: 4 additions & 9 deletions config/020-indentation-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
:init (setq whitespace-style '(face trailing tabs))
:diminish whitespace-mode)

(use-package auto-indent-mode :ensure t
:init (setq auto-indent-indent-style 'aggressive
auto-indent-on-save-file t
auto-indent-untabify-on-visit-file t
auto-indent-delete-trailing-whitespace-on-save-file t
auto-indent-key-for-end-of-line-then-newline "<M-return>")
(use-package aggressive-indent :ensure t
:config (progn
(auto-indent-global-mode)
(global-set-key (kbd "RET") auto-indent-newline-function))
:diminish auto-indent-mode)
(add-to-list 'aggressive-indent-excluded-modes 'makefile-mode)
(global-aggressive-indent-mode 1))
:diminish aggressive-indent-mode)
3 changes: 2 additions & 1 deletion profiles.clj
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{:user {:plugins [[lein-ancient "1.0.0-RC3"]]}}
{:user {:plugins [[lein-ancient "1.0.0-RC3"]
[lein-pprint "1.3.2"]]}}

0 comments on commit 747b0a1

Please sign in to comment.