I need a key binding of:
M-x compile then in compile command type like
Compile command: love2d /home/huseyin/Documents/Programming/Lua/
I am tired of doing that again and again.
Sure, just add something like this to your init file:
(defun oleg/compile-lua () "use love2d to compile my lua code" (interactive) (compile "love2d /home/huseyin/Documents/Programming/Lua/")) (global-set-key (kbd "<f5>") #'oleg/compile-lua)
You can name the function whatever you prefer, and bind it to whichever key you like.