]> code.delx.au - dotemacs/blobdiff - lisp/my-file-modes.el
stumpwm
[dotemacs] / lisp / my-file-modes.el
index a055166eb12c9c778775166c866ad514afbb3e2e..a819d08d83609733e7b89aa8affa878302bf4b5a 100644 (file)
@@ -33,6 +33,7 @@
 (setq js2-highlight-external-variables nil)
 (setq js2-mode-show-parse-errors nil)
 (setq js2-mode-show-strict-warnings nil)
+(setq js--declaration-keyword-re "x^") ; declarations should have normal indentation
 
 (require 'markdown-mode)
 (define-key markdown-mode-map (kbd "M-{") 'markdown-beginning-of-block)
 (require 'scala-mode)
 
 (require 'slime)
-(setq inferior-lisp-program "clisp")
+(setq inferior-lisp-program "sbcl")
+
+(when (require 'stumpwm-mode nil 'noerror)
+  (add-hook 'find-file-hook
+            (lambda ()
+              (when (string=
+                     ".stumpwmrc"
+                     (file-name-nondirectory (buffer-file-name)))
+                (stumpwm-mode)))))
 
 (require 'yaml-mode)