Skip to content

Code style

Kelson edited this page May 6, 2019 · 1 revision

Emacs configuration

;; Make indentation commands use space only (never tab character)
(setq-default indent-tabs-mode nil)

;; 4 spaces for an indentation
(setq-default cperl-indent-level 4)
(setq-default cperl-close-paren-offset -4)
(setq-default cperl-continued-statement-offset 4)

;; No backup files                                                                       
(setq-default make-backup-files nil)

;; Detect trailing white spaces                                                         
(setq-default show-trailing-whitespace t)
(custom-set-variables
 '(show-trailing-whitespace t))

;; Highlight tabulations                                                                                                           
(require 'whitespace)
(setq-default whitespace-style '(tabs tab-mark))
(global-whitespace-mode 1)
Clone this wiki locally