mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
enabled fci-mode in a number of programming language modes
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
(add-to-list 'auto-mode-alist '("\\.coffee$" . coffee-mode))
|
||||
(add-to-list 'auto-mode-alist '("Cakefile" . coffee-mode))
|
||||
|
||||
(add-hook 'coffee-mode-hook
|
||||
(lambda ()
|
||||
(fci-mode)))
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
|
||||
(add-hook 'feature-mod-hook
|
||||
(lambda ()
|
||||
(fci-mode)
|
||||
(setq whitespace-action (quote (auto-cleanup)))))
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
(lambda ()
|
||||
(flyspell-prog-mode)
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(column-marker-1 80)))
|
||||
(fci-mode)))
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
(add-hook 'markdown-mode-hook
|
||||
(lambda ()
|
||||
(setq whitespace-action nil)
|
||||
(flyspell-mode 1)))
|
||||
|
||||
(setq auto-mode-alist (cons '("\\.md" . markdown-mode) auto-mode-alist))
|
||||
(setq auto-mode-alist (cons '("\\.mdown" . markdown-mode) auto-mode-alist))
|
||||
(setq auto-mode-alist (cons '("\\.markdown" . markdown-mode) auto-mode-alist))
|
||||
|
||||
(add-hook 'markdown-mode-hook
|
||||
(lambda ()
|
||||
(setq whitespace-action nil)
|
||||
(fci-mode)
|
||||
(flyspell-mode 1)
|
||||
(define-key markdown-mode-map (kbd "C-c p") 'markdown-preview)))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
(add-hook 'php-mode-hook
|
||||
(lambda ()
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(column-marker-1 80)))
|
||||
(fci-mode)))
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
(setq ruby-use-encoding-map nil)
|
||||
(setq ruby-electric-expand-delimiters-list (quote (124)))
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(column-marker-1 80)
|
||||
(fci-mode)
|
||||
(define-key ruby-mode-map
|
||||
(kbd "RET") 'reindent-then-newline-and-indent)
|
||||
(define-key ruby-mode-map
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
|
||||
(add-hook 'yaml-mode-hook
|
||||
'(lambda ()
|
||||
(fci-mode)
|
||||
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent)))
|
||||
|
||||
Reference in New Issue
Block a user