Newest Questions
27,900 questions
6
votes
1
answer
2k
views
Warning: Unused lexical variable ‘xxxxx’ for clearly used variables
I have this function:
(defun uikit-autolayout (stackview)
"Ask STACKVIEW to auto layout."
(let* ((orientation-index (pcase (uikit--orientation-of stackview)
('left 0)...
1
vote
1
answer
181
views
Automatic authentication in rcirc
I'm trying to achieve the automatic authentication of my registered nickname on Freenode, so that I can join the #emacs IRC channel.
Since I upload my Emacs config to a public repository, I've opted ...
3
votes
2
answers
472
views
Unable to visit file from grep results
I recently updated to emacs 26.1. Since then, grep results are not highlighted and does not contain links to files. 'n' or 'p' gives "Moved past last grep hit" or "Moved back before first grep hit".
...
3
votes
1
answer
524
views
How to automatically save buffer after each modification without using packages
I'm using Emacs and Windows 10 and I am fairly new to both Emacs and elisp (and I am not a programmer).
I'm looking for a way to automatically save a buffer immediately after any modification ...
1
vote
0
answers
199
views
How to delete a long region by setting a mark and then searching for the location of the end of the region?
I have a long document. I placed two unique identifiers, in the form of short strings of printable English letter, in two positions in the document. The identifiers are far apart. My task is to delete ...
1
vote
1
answer
147
views
Unclear error message from a function call in my init file
With my Emacs 26.1 on my 10.13.6 Mac, I want Emacs to systemically open my file located at /Users/ewandelanoy/Documents/html_files/Printable/latinized_agreda2.txt with the mac-roman-mac encoding, ...
0
votes
1
answer
602
views
Shift + cursor stopped behave as usual in org mode
after a package update and restart shift+arrow does not behave as usual in org mode: move one day up/down in dates or cycling between statuses (todo, done, waiting...) in task lists.
org-support-...
2
votes
2
answers
1k
views
Org mode - storing LaTeX preview files in a separate directory
Let's say I am working with "file_name.org" file. When I use C-c C-x C-l to generate a LaTeX preview, it creates a png image and store in ltximg/ directory by default.
I would store the preview ...
3
votes
1
answer
2k
views
emacs daemon and ssh agent forwarding
In order to use ssh agent forwarding with emacs in daemon mode, running on a remote server, I've come-up with the following.
I have an alias for the client like so:
alias emacsclient="update_agent;/...
2
votes
0
answers
51
views
Get keymap that called function
I am trying to write a function that can be used to make a keybinding "remember" the key sequence that led up to the function being called.
(defun modal-function (func)
(funcall func)
(set-...
2
votes
2
answers
970
views
how to define an evil-operator to move forward/backward a text-object?
I am trying to define a function that moves to the begin/end of current text-object.
First - I define an operator:
(evil-define-operator evil-forward-text-object (beg end type)
"move to end of ...
1
vote
1
answer
77
views
How to set imenu to a list of errors in compilation mode
I would like to use helm-imenu to see and navigate on a list of errors/warnings in compilation buffer. How can I do that? E.g., by setting imenu-generic-expression to some value?
2
votes
2
answers
2k
views
how to solve conflicts between operating system shortcuts and emacs shortcuts?
In some cases operating system shortcuts takes precedence and in other cases emacs shortcuts takes precedence. what's the reason for this kind of behaviour?
Eg:
(Mojave shortcut) Command + shift + 5,...
0
votes
1
answer
133
views
Why is calc-precision function definition void?
For a school assignment, we were to find some way to overcome Elisp's limited floating point precision. I found this, which I thought was pretty useful, but it gives no description of how to actually ...
0
votes
1
answer
199
views
regex to match abc = abc statement
Use emacs-lisp, how to match the same variable assign statement?
for example:
below lines should be matched:
abc = abc
xyz = xyz
weeoof = weeoof
But below lines should not be matched:
abc = abd
...