From: Hugo Villeneuve Date: Sat, 22 Aug 2015 18:01:14 +0000 (-0400) Subject: Ajouts emacsrc X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=443d6a317df864ee069e4d4ad0e760f8ffbad63f;p=hvlinux.git Ajouts emacsrc --- diff --git a/stage5/misc/emacs/emacsrc b/stage5/misc/emacs/emacsrc index 913dcab..aefc370 100644 --- a/stage5/misc/emacs/emacsrc +++ b/stage5/misc/emacs/emacsrc @@ -25,8 +25,12 @@ ;; Replaces tabs in files with spaces (setq-default indent-tabs-mode nil) -;; Display trailing whitespace -(setq-default show-trailing-whitespace t) +;; empty: Highlight empty lines +;; lines-tail: Highlight lines over 80 characters +;; trailing: Highlight trailing whitespace +(require 'whitespace) +(setq whitespace-style '(face empty lines-tail trailing)) +(global-whitespace-mode t) ;; Makes the compilation buffer always scrolls to follow ;; output as it comes in. @@ -59,6 +63,11 @@ ;; Map End key to end-of-buffer (global-set-key "\e[4~" 'end-of-buffer) +(require 'org) +(define-key global-map "\C-cl" 'org-store-link) +(define-key global-map "\C-ca" 'org-agenda) +(setq org-log-done t) + ;;=========================================================== ;; Key bindings for compiling programs ;;===========================================================