-
-
Save DanielDe/afe396b5645cbbceae370ce3b6da27e4 to your computer and use it in GitHub Desktop.
Basic Elisp syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Defines a function named `foo`. | |
(defun foo () | |
(interactive) ;; Makes the function show up in `M-x`. | |
(bar) ;; Calls a function named `bar`. | |
(baz 1)) ;; Calls a function named `baz` with an argument of `1`. | |
;; Binds the `foo` function to a global hotkey. | |
(global-set-key (kbd "C-c p") 'foo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment