summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs42
1 files changed, 41 insertions, 1 deletions
diff --git a/emacs b/emacs
index c22764e..408ea6d 100644
--- a/emacs
+++ b/emacs
@@ -336,9 +336,49 @@ If this is set during find-file, flyspell mode gets enabled automaticaly.")
(global-set-key "\C-cy" '(lambda () (interactive)
(popup-menu 'yank-menu)))))
+;; fill adapt
+(when (require 'filladapt nil 'noerror)
+ (setq-default filladapt-mode t))
+
+;; jshint-mode
+(when (require 'flymake-jshint nil 'noerror)
+ (add-hook 'js-mode-hook
+ (lambda () (flymake-mode t))))
+
+;; promela-mode
+(when (require 'promela-mode nil 'noerror)
+ (setq auto-mode-alist
+ (append
+ (list (cons "\\.promela$" 'promela-mode)
+ (cons "\\.spin$" 'promela-mode)
+ (cons "\\.pml$" 'promela-mode)
+ (cons "\\.prm$" 'promela-mode)
+ (cons "\\.porm$" 'promela-mode)
+ )
+ auto-mode-alist)))
+
+;; dired+ mode
+(when (require 'dired-x nil 'noerror)
+ (setq dired-omit-files (rx (or (seq bol (? ".") "#")
+ (seq "~" eol)
+ (seq bol "svn" eol)
+ (seq ".pyc" eol)
+ (seq bol ".git" eol)
+ (seq ".d" eol)
+ (seq ".o" eol)))
+
+ dired-omit-extensions (append dired-latex-unclean-extensions
+ dired-bibtex-unclean-extensions
+ dired-texinfo-unclean-extensions))
+
+ (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))))
+
+;; arduino-mode
+(require 'arduino-mode nil 'noerror)
+
;; deft
(when (require 'deft nil 'noerror)
(setq deft-extension "org"
deft-directory "~/.org/deft/"
deft-text-mode 'org-mode)
- (global-set-key (kbd "<f9>") 'deft))
+ (global-set-key (kbd "<f9>") 'deft)) \ No newline at end of file