X-Git-Url: https://code.delx.au/dotemacs/blobdiff_plain/d80d0cb6517bfa514489b29cba60204d4c698438..eecc96ffcd831077788d799c8ebdc9d0562c8f77:/lisp/my-file-modes.el diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 5ca80fe..6020b4c 100644 --- a/lisp/my-file-modes.el +++ b/lisp/my-file-modes.el @@ -1,6 +1,7 @@ ;;; -*- lexical-binding: t -*- (setq-default indent-tabs-mode nil) +(setq-default require-final-newline t) (require 'cc-mode) (setq c-auto-align-backslashes nil) @@ -34,6 +35,8 @@ (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 +(when (require 'tern nil 'noerror) + (add-hook 'js2-mode-hook (lambda () (tern-mode t)))) (require 'markdown-mode) (define-key markdown-mode-map (kbd "M-{") 'markdown-beginning-of-block) @@ -53,7 +56,16 @@ (require 'scala-mode) (require 'slime) -(setq inferior-lisp-program "clisp") +(setq inferior-lisp-program "sbcl") + +(require 'ssh-file-modes) + +(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) -(add-to-list 'auto-mode-alist '("\\.raml\\'" . yaml-mode))