I wonder why this keybind start not working, it used to work but not today.
;; defun my-exwm-launch
(defun my-new-exwm-launch (command)
(lambda ()
(interactive)
(start-process-shell-command command nil command)))
(exwm-input-set-key (kbd "s-g") (my-new-exwm-launch "gkamus"))
I think I have this problem in the past too and I solved it by giving it lambda but that solution not work anymore
Update If I move the function and function to set keybind in elisp or .el file, it work
but If I use .org as dotfiles it not working I use this to load org file as dotfiles
(require 'org)
(org-babel-load-file (expand-file-name "~/.doom.d/personal/cheats_conf.org" user-emacs-directory))
(lambda ()
and also remove a closing parenthesis at the end of the function. Since you are formally defining a function withdefun
, you do not needlambda
in this particular context. Note that alambda
can be used inside a function ..., but not in this particular context.(lambda ()
and the closing parentheses of lambda the error changed to "Wrong type argument: commandp, #<process gkamus>-la
to thels
function, which is of course unrelated to your babel example:(defun test-fn (arg) "Doc-string" (display-buffer (process-buffer (start-process "ls-process" "*OUTPUT-BUF*" "ls" arg)) t))
and(global-set-key [f5] (lambda () (interactive) (test-fn "-la")))
....