Skip to content

Instantly share code, notes, and snippets.

@lexdene
Created April 3, 2014 07:33
Show Gist options
  • Save lexdene/9949871 to your computer and use it in GitHub Desktop.
Save lexdene/9949871 to your computer and use it in GitHub Desktop.
let variable in emacs lisp
(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