Retain correct 8-character tabs, but avoid them for future indenting
This commit is contained in:
parent
47981c6ee1
commit
cc2836c4f6
1 changed files with 12 additions and 2 deletions
|
@ -43,8 +43,18 @@
|
||||||
(setq mac-command-modifier 'super)
|
(setq mac-command-modifier 'super)
|
||||||
(setq mac-option-modifier 'meta))
|
(setq mac-option-modifier 'meta))
|
||||||
|
|
||||||
;; Death to the tabs!
|
;; Death to the tabs! However, tabs historically indent to the next
|
||||||
(setq-default indent-tabs-mode nil)
|
;; 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 the selection with a keypress
|
||||||
(delete-selection-mode t)
|
(delete-selection-mode t)
|
||||||
|
|
Loading…
Reference in a new issue