Questions tagged [scope]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
3answers
116 views

How does scoping work in emacs lisp

A lot of emacs configurations shared publicly have this format: ;; 01-something.el (provide 'something) ;; init.el (require 'something) Suppose I'm writing a defun named "s-join" inside 01-...
0
votes
1answer
33 views

How create custom function access only from ONE el file?

Emacs 26.1 In my file custom_functions.el (defun increment-number-by-one-at-point() (interactive) (increment-number-at-point-private 1)) ;; Increment number at point (defun increment-number-at-...
4
votes
2answers
175 views

How to highlight the current scope with C family languages?

While it's possible to highlight a block using the character under the cursor, is there a way to highlight the scope of the current cursor? I'm interested in something like QtCreator's block-...
1
vote
1answer
109 views

Are there other ways of introducing local variables other than `let`

I am new to Emacs-Lisp and I was surprised to learn a curious variable scoping rule in Emacs that any variables which are intended to be used locally must be explicitly declared with let. Otherwise ...