]> git.donarmstrong.com Git - lib.git/commitdiff
separate out css mode and abbrev mode
authorDon Armstrong <don@donarmstrong.com>
Fri, 19 Jan 2018 19:02:07 +0000 (11:02 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 19 Jan 2018 19:02:07 +0000 (11:02 -0800)
emacs_el/configuration/don-configuration.org

index e432840f43802492526da32f0f2a629649b0b77f..edeaae006e94ce12a49adf403fa5a4f92ad1a8e6 100644 (file)
@@ -999,6 +999,35 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
     :commands password-store-edit password-store-create
     )
 #+END_SRC
+** CSS mode
+#+BEGIN_SRC emacs-lisp
+  (use-package css
+    :mode "\\.css'"
+    :config
+    ;; fix up css mode to not be silly
+    ;; from http://www.stokebloke.com/wordpress/2008/03/21/css-mode-indent-buffer-fix/
+    (setq cssm-indent-level 4)
+    (setq cssm-newline-before-closing-bracket t)
+    (setq cssm-indent-function #'cssm-c-style-indenter)
+    (setq cssm-mirror-mode nil))
+#+END_SRC
+** Abbrev Mode
+#+BEGIN_SRC emacs-lisp
+  (use-package abbrev
+    :diminish abbrev
+    :config
+    ;; load abbreviations from 
+    (setq abbrev-file-name       
+          "~/.emacs_abbrev_def")
+
+    ;; read the abbrev file if it exists
+    (if (file-exists-p abbrev-file-name)
+        (quietly-read-abbrev-file))
+
+    ;; for now, use abbrev mode everywhere
+    (setq default-abbrev-mode t))
+#+END_SRC
+
 * Email
 ** Mutt
 *** Message-mode
@@ -2145,19 +2174,7 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 
   (column-number-mode t)
  
-  ; abbrev mode settings
-  ; load abbreviations from 
-  (setq abbrev-file-name       
-        "~/.emacs_abbrev_def")
-
-  ; read the abbrev file if it exists
-  (if (file-exists-p abbrev-file-name)
-      (quietly-read-abbrev-file))
-
-  ; for now, use abbrev mode everywhere
-  (setq default-abbrev-mode t)
-
-  (desktop-load-default)
+  (desktop-save-mode)
   (desktop-read)
   '(icomplete-mode on)
   (custom-set-faces