summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2022-12-15 08:53:43 +0200
committerThanos Apollo <[email protected]>2022-12-15 08:53:43 +0200
commita7ad2d9583f518f466ddc3bd9a598fdb6bf05342 (patch)
tree2ab679d3dc5e8fac971ed8207868330816d61923
parent394716cfc096696dc61cc7e9c54bfb32a48083c7 (diff)
functions: simplify apollo/center-buffer
-rw-r--r--.emacs.d/lisp/functions.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/.emacs.d/lisp/functions.el b/.emacs.d/lisp/functions.el
index 6cc40a8..30cfa60 100644
--- a/.emacs.d/lisp/functions.el
+++ b/.emacs.d/lisp/functions.el
@@ -31,22 +31,17 @@
"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)
+ (setq visual-fill-column-center-text nil)
+ (setq visual-fill-column-center-text t))
(visual-fill-column-mode 1)
(message "General's task completed!"))
-
(defun apollo/rofi-switch-window ()
"Navigate X11 buffers using rofi."
(interactive)
(start-process-shell-command
"rofi" nil "rofi -show window"))
-;; (global-set-key (kbd "s-<tab>") 'apollo/run_rofi)
(defun apollo/run-in-background (command)
"Run COMMAND in the background."