Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
320 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)) ...
The Nightm4re's user avatar
1 vote
1 answer
67 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: ...
user4035's user avatar
  • 303
5 votes
0 answers
107 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 ...
Zeta's user avatar
  • 19.6k
6 votes
1 answer
123 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 ...
Zeta's user avatar
  • 19.6k
4 votes
2 answers
117 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 ...
little-dude's user avatar
9 votes
1 answer
136 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 ...
Zeta's user avatar
  • 19.6k
4 votes
1 answer
144 views

Minimal substring with all characters contained in string

I was given following task in the interview: Given a string, find shortest substring in it that contains all of the different characters contained in the original string. Here is my solution in ...
Srv19's user avatar
  • 455
5 votes
1 answer
196 views

Accessor functions in elisp

I'm writing some simple emacs tools for visual studio solutions. I've got a function sln-process-csproj-file. This function takes the path to a project, and ...
jcarpenter2's user avatar
1 vote
1 answer
262 views

How do I avoid eval in elisp?

I have wrote a simple util to submit my code to a online judge site, how to avoid the evil function? ...
Frei Zhang's user avatar
1 vote
1 answer
140 views

A small emacs-lisp snippet for opening a register in another window

I'd like to get some feedback on whether this is idiomatic elisp, whether it's any good, and any small modifications that would be useful. Thanks ...
Squidly's user avatar
  • 113
6 votes
2 answers
2k views

Combinations of list elements

It was written in Emacs Lisp and requires Common Lisp loop facility. Can this code be improved? Did I hit any anti-patterns along the way? ...
mpontus's user avatar
  • 163