Questions tagged [elisp]
Emacs Lisp is the extension language for the GNU Emacs text editor, and in fact, most of the functionality of Emacs is implemented using Emacs Lisp. Users generally customize Emacs' behavior by adding Emacs Lisp statements to their .emacs, or writing separate packages.
42 questions
2
votes
1
answer
126
views
Example of emacs setup code written in elisp
I'm still going to improve it but I left my emacs to my liking. I really liked having this freedom to leave the ide as I like, most don't give you that. I'm even thinking about making an IDE in the ...
2
votes
1
answer
87
views
Multiple regexp replace in string
I made a function that prompts me for values of variables (formatted %^{var1}) it found in a string and fills in said values.
...
5
votes
1
answer
151
views
elisp function to replace text in an org file
I've made a little function for myself that replaces certain variables to text in an org file. I declare a bunch of variables in the beginning of the file and then the function replaces all references ...
3
votes
1
answer
317
views
`nov.el` function to search the entire `epub` ebook
nov.el does not provide an easy function to search the whole of the ebook content. Every search performed on buffer only applies to the "document" or ...
0
votes
2
answers
343
views
Split a list into two parts
I wanted to split a list into 2 parts, as per the chosen size, first the size and then the list. Example:
(split 3'(1 3 5 7 9))
...
1
vote
1
answer
85
views
Installing packages when needed
I decided to create a portable Emacs config and install packages I use if it's necessary on a fresh computer.
Here is what I've done:
...
5
votes
0
answers
119
views
Hide your text with colorful blocks in secret(-mode)
Motivation
While working on a completely unrelated task, I wanted to share a screenshot of my current Emacs frame, but not of the actual text contents. And while GIMP's pixelate filter did the job, I ...
6
votes
1
answer
140
views
WOMOIWIW: What Org-mode Opens is What I Want
Motivation
Previously, on the Emacs stack exchange:
In Org mode, when I open a link (C-c C-o) [...] [that] contains a wildcard, such as file:3_o*.pdf, Emacs opens ...
3
votes
1
answer
74
views
Power menu (Shutdown, Reboot, Sleep) in ELISP
I've written an interactive function which lets me shudown, reboot my machine as well as put it to sleep.
I'm using emacs and I'm just starting out getting into ELISP programming. As I'm a total ...
2
votes
0
answers
248
views
Conway's Game of Life in Emacs Lisp
I decided it would be fun to implement Conway's Game of Life (CGOL) in Emacs Lisp as my first elisp script.
My goals for the implementation were pretty simple
Transform current buffer into the next ...
4
votes
2
answers
131
views
Check for pangrams in elisp
I'm trying to find pangrams ie sentences that contain all the letters of the alphabet, for instance "The quick brown fox jumps over the lazy dog".
I'm an absolute beginner in elisp, and it ended up ...
2
votes
1
answer
76
views
Get the suffix for the date string
Sometimes I have the date as part of the file name. And then when Emacs autocompletes the file name, it puts the part of the date. In these situations I have to write the rest of the date manually. ...
9
votes
1
answer
147
views
Edis: Emacs driven indentation script
Motivation
I recently picked up Emacs. As part of the process, I've started to configure the editor to fit my needs with Emacs Lisp. The Elisp indentation rules are still foreign to me, so I pretty ...
6
votes
1
answer
266
views
Hook to switch the linter binaries in Emacs Lisp according to virtual environment
Problem
I use Emacs for Python development along with several linters. When I activate a Python virtual environment (venv) from within Emacs, I would like to set the linter binaries according to the ...
2
votes
0
answers
863
views
Binary, octal, decimal, and hexadecimal conversion in Elisp
Every once in a while I need to convert numbers between bases. As far as I'm aware there are no existing commands that let you do this in Emacs, so I added some.
These functions convert numbers at ...