Files
nixos-dots/dots/doom/lisp/programs.el
zastian@mrthoddata.com bdf553079b new and impruved
2025-05-07 15:45:08 +01:00

10 lines
366 B
EmacsLisp
Executable File

;;; ../../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))))