From 692b44d648472fdf52048f6040d223ea7befe755 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 25 Apr 2024 17:05:06 -0500 Subject: removed unnecessary hardcoded paths & fixed a typo - defined constants for all commonly used paths - replaced hardcoded instances throughout the config with the variables - fixed typo in scripts/reset-to-first-launch.sj --- modules/system-utils.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/system-utils.el') diff --git a/modules/system-utils.el b/modules/system-utils.el index 0ec287b9..bc1bba64 100644 --- a/modules/system-utils.el +++ b/modules/system-utils.el @@ -106,10 +106,11 @@ With a prefix argument, add the TARGET-BUFFER to \='cj/buffer-bury-alive-list\=' ;; opens the current buffer's file with a command. Prompts if interactive. (defun cj/open-file-with-command (command) - "Asynchronously open the file for the current buffer with a specified COMMAND. + "Asynchronously open the file assocated with the current buffer with COMMAND. Don't automatically display output buffers, but keep them in buffer list." (interactive "MOpen with program: ") - (let ((display-buffer-keywords '(("*Async Shell Command*" display-buffer-no-window (nil))))) + (let ((display-buffer-keywords + '(("*Async Shell Command*" display-buffer-no-window (nil))))) (add-to-list 'display-buffer-alist display-buffer-keywords)) (async-shell-command (format "%s \"%s\"" command buffer-file-name))) -- cgit v1.2.3