.emacs-my
changeset 1231 a909406cc06c
parent 1230 a13ad8020257
child 1232 8c3600d2317d
equal deleted inserted replaced
1230:a13ad8020257 1231:a909406cc06c
  2749   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2749   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2750   )
  2750   )
  2751 
  2751 
  2752 (eval-after-load 'js '(modify-syntax-entry ?$ "w" js-mode-syntax-table))
  2752 (eval-after-load 'js '(modify-syntax-entry ?$ "w" js-mode-syntax-table))
  2753 
  2753 
       
  2754 (setq js-indent-level 4)
       
  2755 ;; js-curly-indent-offset, js-expr-indent-offset, js-paren-indent-offset, 	js-square-indent-offset, js-switch-indent-offset
       
  2756 
  2754 ;; BUG: all single char comments do not stop highlighting on end of line but
  2757 ;; BUG: all single char comments do not stop highlighting on end of line but
  2755 ;; go to end of buffer. To fix use code:
  2758 ;; go to end of buffer. To fix use code:
  2756 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2759 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2757 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2760 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2758 
  2761 
  2805 (ignore-errors
  2808 (ignore-errors
  2806   (require 'wesnoth-mode)
  2809   (require 'wesnoth-mode)
  2807   (add-to-list 'auto-mode-alist '("wesnoth.*\\.cfg\\'" . wesnoth-mode)) )
  2810   (add-to-list 'auto-mode-alist '("wesnoth.*\\.cfg\\'" . wesnoth-mode)) )
  2808 
  2811 
  2809 (setq wesnoth-base-indent 2)
  2812 (setq wesnoth-base-indent 2)
       
  2813 
       
  2814 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
       
  2815 (message "css")
       
  2816 
       
  2817 (setq css-indent-offset 4)
  2810 
  2818 
  2811 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2819 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2812 (message "htmlize")
  2820 (message "htmlize")
  2813 
  2821 
  2814 (setq
  2822 (setq