played with css/scss a bit to get 2 spaces for indents

This commit is contained in:
Kienan Stewart 2016-02-10 10:07:27 -05:00
parent d093bcd1dd
commit bb57180223
2 changed files with 13 additions and 3 deletions

12
init.el
View File

@ -6,9 +6,16 @@
;;(require 'multi-term) ;;(require 'multi-term)
;;(setq multi-term-program "/bin/bash") ;;(setq multi-term-program "/bin/bash")
;; CSS Mode needs to be applied to scss files.
(add-to-list 'auto-mode-alist '("\\.scss" . css-mode))
(setq-default css-indent-offset 2)
;; Always use spaces instead of tabs, a tab is 4 spaces by default ;; Always use spaces instead of tabs, a tab is 4 spaces by default
(setq-default tab-always-indent t)
(setq-default indent-tabs-mode nil) (setq-default indent-tabs-mode nil)
(setq-default tab-width 4) (setq-default tab-width 4)
(setq-default tab-stop-list (number-sequence 4 120 4))
(setq-default tab-always-indent 'complete)
;; WhiteSpace hilighting ;; WhiteSpace hilighting
(require 'whitespace) (require 'whitespace)
@ -51,8 +58,9 @@
;;(pymacs-load "ropemacs" "rope-") ;;(pymacs-load "ropemacs" "rope-")
;; SCSS ;; SCSS
(require 'scss-mode) ;;(autoload 'scss-mode "scss-mode")
(setq scss-compile-at-save nil) ;;(add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
;;(setq-default scss-compile-at-save nil)
;; PHP and Drupal-Modes ;; PHP and Drupal-Modes
;; http://stackoverflow.com/questions/898063/making-php-mode-and-other-cc-mode-derived-modes-compatible-with-emacs-23 ;; http://stackoverflow.com/questions/898063/making-php-mode-and-other-cc-mode-derived-modes-compatible-with-emacs-23

View File

@ -31,6 +31,8 @@
(require 'derived) (require 'derived)
(require 'compile) (require 'compile)
(require 'flymake) (require 'flymake)
(setq-default tab-width 2)
(setq-default tab-stop-list number-sequence(2 120 2))
(defgroup scss nil (defgroup scss nil
"Scss mode" "Scss mode"