summaryrefslogtreecommitdiff
path: root/modules/system-utils.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-25 17:05:06 -0500
committerCraig Jennings <c@cjennings.net>2024-04-25 17:05:06 -0500
commit692b44d648472fdf52048f6040d223ea7befe755 (patch)
tree8ec08f4463640a720476c2901cd9e1cbee418b1f /modules/system-utils.el
parenta5555afaf09be4c023f49661d48de803b2586927 (diff)
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
Diffstat (limited to 'modules/system-utils.el')
-rw-r--r--modules/system-utils.el5
1 files changed, 3 insertions, 2 deletions
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)))