new and impruved
This commit is contained in:
9
dots/doom/lisp/programs.el
Executable file
9
dots/doom/lisp/programs.el
Executable file
@@ -0,0 +1,9 @@
|
||||
;;; ../../dotfiles/doom/.config/doom/lisp/programs.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; make a function to run a program with a given name and arguments
|
||||
(defun run-program (name &rest args)
|
||||
(interactive)
|
||||
(let ((program (executable-find name)))
|
||||
(if program
|
||||
(apply #'start-process name nil program args)
|
||||
(error "Could not find program %s" name))))
|
||||
Reference in New Issue
Block a user