dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit cbc4538bc67e383f13766cb670c51a00fca8edb2
parent 46fb8da3d90bc272471dd50fd547389c09d4f3be
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sun, 24 Apr 2016 02:59:17 +0300

emacs: Delete trailing whitespace on save

Diffstat:
.aliases | 2+-
.emacs | 6+++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.aliases b/.aliases @@ -76,7 +76,7 @@ alias ls="ls --color=auto" alias l="ls" alias ll="ls -lah" alias cl="clear; ls" -alias e="emacs -nw" +alias e="emacsclient" alias iptv="iptables -L -v -n --line-numbers" alias iptvs="ip6tables -L -v -n --line-numbers" diff --git a/.emacs b/.emacs @@ -40,7 +40,8 @@ "n" 'org-next-link "N" 'org-previous-link "a" 'org-agenda - "t" 'org-show-todo-tree) + "t" 'org-show-todo-tree + "A" 'org-archive-subtree-default) (global-evil-leader-mode) (evil-leader/set-leader ";") @@ -54,3 +55,6 @@ '((sh . t) (python . t) )) + +;; General settings +(add-hook 'before-save-hook 'delete-trailing-whitespace)