From: Don Armstrong Date: Mon, 25 Mar 2013 20:42:21 +0000 (-0700) Subject: fix css mode; add tasks, and fix auto-newline X-Git-Url: https://git.donarmstrong.com/?p=emacs.git;a=commitdiff_plain;h=a67fad4f12619c0d247f79fb68cf16c7d7e1a5ca fix css mode; add tasks, and fix auto-newline --- diff --git a/.emacs b/.emacs index 84e9383..a1b2e7b 100644 --- a/.emacs +++ b/.emacs @@ -90,7 +90,7 @@ "~/projects/fh/fh.org"))) (setq org-global-properties '(("Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00"))) -(setq org-global-columns-default-format "%40ITEM(Task) %TAGS %PRIORITY %TODO %17Effort(Estimated Effort){:} %CLOCKSUM") +(setq org-columns-default-format "%40ITEM(Task) %TAGS %PRIORITY %TODO %17Effort(Estimated Effort){:} %CLOCKSUM") (setq org-default-notes-file "~/projects/notes/notes.org") (setq org-capture-templates ;; mail-specific note template, identified by "m" @@ -225,8 +225,8 @@ Maildir, or by Message-ID." ;; } (setq-default cperl-hairy t cperl-indent-level 4 -;; cperl-auto-newline t -;; cperl-auto-newline-after-colon t + cperl-auto-newline nil + cperl-auto-newline-after-colon nil cperl-continued-statement-offset 4 cperl-brace-offset -4 cperl-label-offset -4 @@ -466,6 +466,13 @@ Maildir, or by Message-ID." (define-key global-map (kbd "C-;") 'iedit-mode) (global-set-key (kbd "C-;") 'iedit-mode) +; 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) + (require 'multi-web-mode) (setq mweb-default-major-mode 'html-mode) (setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")