enabled fci-mode in a number of programming language modes

This commit is contained in:
2011-10-07 22:11:52 +01:00
parent cfa5e6134d
commit 4da8338680
7 changed files with 16 additions and 8 deletions

View File

@@ -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)))

View File

@@ -2,4 +2,5 @@
(add-hook 'feature-mod-hook
(lambda ()
(fci-mode)
(setq whitespace-action (quote (auto-cleanup)))))

View File

@@ -3,4 +3,4 @@
(lambda ()
(flyspell-prog-mode)
(setq whitespace-action (quote (auto-cleanup)))
(column-marker-1 80)))
(fci-mode)))

View File

@@ -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)))

View File

@@ -1,4 +1,4 @@
(add-hook 'php-mode-hook
(lambda ()
(setq whitespace-action (quote (auto-cleanup)))
(column-marker-1 80)))
(fci-mode)))

View File

@@ -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

View File

@@ -4,4 +4,5 @@
(add-hook 'yaml-mode-hook
'(lambda ()
(fci-mode)
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent)))