Delete trailing whitespaces before-saving
Enable globally because I don't know of a scenario where we would ever want this.
This commit is contained in:
parent
b8ef2937f3
commit
9541cfbf44
1 changed files with 8 additions and 4 deletions
|
|
@ -57,6 +57,12 @@
|
||||||
|
|
||||||
* General config
|
* General config
|
||||||
|
|
||||||
|
** Delete trailing whitespaces
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Save history and recent files
|
** Save history and recent files
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
@ -103,7 +109,7 @@ https://www.gnu.org/software/emacs/manual/html_node/emacs/Icomplete.html
|
||||||
More info : https://www.emacswiki.org/emacs/FullScreen
|
More info : https://www.emacswiki.org/emacs/FullScreen
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(push '(fullscreen . maximized) default-frame-alist)
|
(push '(fullscreen . maximized) default-frame-alist)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** ibuffer
|
** ibuffer
|
||||||
|
|
@ -284,7 +290,7 @@ Install and wait for hydra to be available since we are using it in this init.el
|
||||||
|
|
||||||
Workaround to enable eglot in all programming modes:
|
Workaround to enable eglot in all programming modes:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(add-hook 'prog-mode-hook 'eglot-ensure)
|
(add-hook 'prog-mode-hook 'eglot-ensure)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Yasnippet
|
** Yasnippet
|
||||||
|
|
@ -373,5 +379,3 @@ https://github.com/remyferre/comment-dwim-2
|
||||||
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map)
|
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map)
|
||||||
(projectile-mode +1)
|
(projectile-mode +1)
|
||||||
)
|
)
|
||||||
|
|
||||||
#+END_SRC
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue