X-Git-Url: https://code.delx.au/dotemacs/blobdiff_plain/7399a9f013d2f7c078b8cc0635a13766d79010b8..1107bced8c2967f75fcd70c4aa35163e3f5ffb36:/lisp/my-file-modes.el diff --git a/lisp/my-file-modes.el b/lisp/my-file-modes.el index 31ae0bd..142e1a0 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) @@ -31,6 +32,15 @@ (add-to-list 'interpreter-mode-alist '("node" . js2-mode)) (setq js2-concat-multiline-strings 'eol) (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 +(when (require 'tern nil 'noerror) + (add-hook 'js2-mode-hook (lambda () (tern-mode t)))) + +(when (require 'ledger-mode nil 'noerror) + (add-to-list 'auto-mode-alist '("\\.ledger\\'" . ledger-mode)) + (setq ledger-post-amount-alignment-column 72)) (require 'markdown-mode) (define-key markdown-mode-map (kbd "M-{") 'markdown-beginning-of-block) @@ -50,6 +60,11 @@ (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-to-list 'auto-mode-alist '("/\\.stumpwmrc\\'" . stumpwm-mode))) (require 'yaml-mode)