Created
April 3, 2014 07:33
-
-
Save lexdene/9949871 to your computer and use it in GitHub Desktop.
let variable in emacs lisp
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
(setq elephant "elephant form global") | |
(defun print-elephant () | |
(message elephant) | |
) | |
(defun test-let-variable () | |
(print-elephant) | |
(message elephant) | |
(let ((elephant "elephant from let")) | |
(print-elephant) | |
(message elephant)) | |
(print-elephant) | |
(message elephant) | |
) | |
(print-elephant) | |
(test-let-variable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment