diff options
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/my-functions.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.emacs.d/lisp/my-functions.el b/.emacs.d/lisp/my-functions.el index 80984d8..85eb60a 100644 --- a/.emacs.d/lisp/my-functions.el +++ b/.emacs.d/lisp/my-functions.el @@ -26,6 +26,19 @@ </body> </html>" )) +(defun center-buffer () + "Center buffer." + (interactive) + (setq visual-fill-column-width 100 + visual-fill-column-center-text t) + (visual-fill-column-mode 1)) + +(defun center-buffer-undo () + "Undo center-buffer." + (interactive) + (setq visual-fill-column-width 2000 + visual-fill-column-center-text nil) + (visual-fill-column-mode 1)) ;;; my-functions.el ends here |