From a7ad2d9583f518f466ddc3bd9a598fdb6bf05342 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 15 Dec 2022 08:53:43 +0200 Subject: functions: simplify apollo/center-buffer --- .emacs.d/lisp/functions.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to '.emacs.d/lisp/functions.el') 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-") 'apollo/run_rofi) (defun apollo/run-in-background (command) "Run COMMAND in the background." -- cgit v1.2.3