summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/functions.el28
1 files changed, 14 insertions, 14 deletions
diff --git a/.emacs.d/lisp/functions.el b/.emacs.d/lisp/functions.el
index ce1aada..6cc40a8 100644
--- a/.emacs.d/lisp/functions.el
+++ b/.emacs.d/lisp/functions.el
@@ -1,6 +1,6 @@
;;; package --- Summary
;;; Commentary:
-;;; useful snippets of code for my daily use.
+;;; Random functions for my daily use.
;;; Code:
@@ -26,23 +26,23 @@
</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))
+(defun apollo/center-buffer ()
+ "Centers/Uncenters selected buffer"
+ (interactive)
+ (if visual-fill-column-center-text
+ (setq visual-fill-column-width 400
+ visual-fill-column-center-text nil)
+ (setq visual-fill-column-width 90
+ visual-fill-column-center-text t))
+ (delete-other-windows)
+ (visual-fill-column-mode 1)
+ (message "General's task completed!"))
+
(defun apollo/rofi-switch-window ()
- "Launch rofi. Cant get it to work with exwm as of now tho."
+ "Navigate X11 buffers using rofi."
(interactive)
(start-process-shell-command
"rofi" nil "rofi -show window"))