Skip to content

Commit

Permalink
Added wide-fill.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Sep 1, 2010
1 parent 733a1e2 commit 178d7d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ini/cust.el
Expand Up @@ -100,6 +100,14 @@
(beginning-of-line)
(forward-line))))

(defun jw-wide-fill-paragraph (arg)
"Fill paragraph with a wide fill column."
(interactive (progn
(barf-if-buffer-read-only)
(list (if current-prefix-arg 'full))))
(let ((fill-column 10000000))
(fill-paragraph-or-region arg)))

;;; Notes

(defun notes ()
Expand Down
2 changes: 2 additions & 0 deletions ini/keybindings.el
Expand Up @@ -3,6 +3,8 @@
(global-set-key (kbd "C-<tab>") 'jw-indent-line)
(global-set-key (kbd "C-z") 'scroll-down) ; I *hate* suspend bound on this key

(global-set-key (kbd "C-M-q") 'jw-wide-fill-paragraph)

(if (is-aquamacs) ; Why do I have to do this for aquamacs?
(define-key osx-key-mode-map (kbd "C-z") 'scroll-down))
(global-set-key (kbd "M-g") 'goto-line) ; goto a line position
Expand Down

0 comments on commit 178d7d9

Please sign in to comment.