Skip to content

Commit

Permalink
Retain correct 8-character tabs, but avoid them for future indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Feb 27, 2012
1 parent 47981c6 commit cc2836c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions modules/prelude-editor.el
Expand Up @@ -43,8 +43,18 @@
(setq mac-command-modifier 'super)
(setq mac-option-modifier 'meta))

;; Death to the tabs!
(setq-default indent-tabs-mode nil)
;; Death to the tabs! However, tabs historically indent to the next
;; 8-character offset; specifying anything else will cause *mass*
;; confusion, as it will change the appearance of every existing file.
;; In some cases (python), even worse -- it will change the semantics
;; (meaning) of the program.
;;
;; Emacs modes typically provide a standard means to change the
;; indentation width -- eg. c-basic-offset: use that to adjust your
;; personal indentation width, while maintaining the style (and
;; meaning) of any files you load.
(setq-default indent-tabs-mode nil) ;; don't use tabs to indent
(setq-default tab-width 8) ;; but maintain correct appearance

;; delete the selection with a keypress
(delete-selection-mode t)
Expand Down

0 comments on commit cc2836c

Please sign in to comment.