discovered the wonder that is auto-fill-mode

This commit is contained in:
2012-03-06 18:05:46 +00:00
parent b117f65e2b
commit 1835536c99
2 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,9 @@
(global-set-key (kbd "C-x a =") 'align-to-equals)
(global-set-key (kbd "M-]") 'align-to-equals)
;; Toggle auto-fill-mode.
(global-set-key (kbd "C-c q") 'auto-fill-mode)
;; Comment or uncomment line
(global-set-key (kbd "C-c /") 'comment-or-uncomment-region-or-line)
(global-set-key (kbd "C-c C-/") 'comment-or-uncomment-region-or-line)

View File

@@ -1,4 +1,6 @@
(setq auto-mode-alist (cons '("\\.md" . markdown-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.mkd" . markdown-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.mkdn" . 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))
@@ -8,4 +10,5 @@
(fci-mode)
(linum-mode t)
(flyspell-mode)
(auto-fill-mode)
(define-key markdown-mode-map (kbd "C-c p") 'markdown-preview)))