elisp Questions

3

Solved

What can I put in my .emacs file so that all lines an any kind of buffer always truncate if too long. I do this mostly because I tend to open many frames and it gets hard to read on a small screen ...
Minium asked 28/9, 2011 at 2:12

3

I want the emacs lisp code to append some data to a log file from emacs. The log file is large so I don't want to read it into memory. I just need to open the log file, append some data to it, clo...
Recurrent asked 26/3, 2011 at 14:48

6

Solved

I'm trying to find a way to quickly recurse through every subdirectory searching for org files. I've found several solutions (Elisp Cookbook, and several solutions on github), but they don't handle...
Applique asked 20/6, 2013 at 14:9

4

Solved

Emacs lisp is a dialect of LISP and especially Scheme. Most of scheme interpreters do have a optimization of Tail Recursion, but emacs lisp doens't. I searched the reason in `info elisp' for a whil...
Overby asked 21/7, 2016 at 2:28

2

Solved

How can I remove the border between windows? I'm using Emacs with -nw
Faerie asked 3/5, 2013 at 7:41

5

Solved

Given the "everything's-a-list" homoiconic approach to code and data in Lisp, I'm having a hard time understanding how to manipulate alists in Emacs Lisp. In particular, how can I convert an alist ...
Rotl asked 4/11, 2013 at 18:32

3

Solved

From the documentation I can see I can access command line arguments (command-line-args). I'd like to add my own arguments but Emacs complains at start up that it doesn't recognize them. E.g. em...
Wellinformed asked 21/1, 2010 at 19:36

10

I have a question regarding how to "gracefully exit SLIME", when I quit Emacs. Here is the relevant portion of my config file: ;; SLIME configuration (setq inferior-lisp-program "/usr/local/bin/s...
Nieberg asked 25/2, 2010 at 20:57

9

Solved

I'm trying to tweak the dired-find-file function in emacs on Windows XP so that when I open (say) a pdf file from dired it fires up a copy of Acrobat Reader and opens that file with it, instead of ...
Endorsee asked 17/2, 2010 at 20:54

7

Solved

Let say I have a configuration file, and each lines contains space separated values. On on the column I have only zeros. Example: ... # there is more configuration before the interesting stuff: 0 ...
Subastral asked 4/6, 2013 at 14:54

3

Solved

I'm trying to make the kill ring essentially ignore whitespace only entries (tabs, newlines, just spaces, etC), I'm fairly new to elisp and I'm pretty sure the way to do is by doing defadvice but I...
Tambac asked 24/8, 2012 at 2:43

8

Solved

Suppose I have variables dir and file containing strings representing a directory and a filename, respectively . What is the proper way in emacs lisp to join them into a full path to the file? For...
Facsimile asked 19/10, 2010 at 1:18

3

Solved

The function directory-files returns the . and .. entries as well. While in a sense it is true, that only this way the function returns all existing entries, I have yet to see a use for including t...
Trifurcate asked 18/6, 2013 at 9:3

6

Solved

I'm looking for a solution that allows me to write native Emacs Lisp code and at compile time turns it into HTML, like Franz's htmlgen: (html ((:div class "post") (:h1 "Title"...
Weekender asked 28/4, 2009 at 11:37

4

Solved

I have a bunch of links saved in an orgmode file, say... http://www.stackoverflow.com http://www.google.com http://www.github.com I can open each one by having the cursor on the link and doing C...
Wil asked 2/8, 2015 at 1:24

6

Solved

When I query the current value of the keymap, eg with M-: (current-local-map), it shows me something along these lines: Value: (keymap (S-mouse-2 . muse-follow-name-at-mouse-other-window) (mou...
Contractive asked 13/8, 2010 at 19:38

6

Solved

EDIT: I understand there is keyboard-quit (which is normally bound to C-g); but I'm more interested to know about how one deals with editing functions that come with Emacs (like in this case). I ru...
Roe asked 17/2, 2009 at 15:15

10

Solved

I have a list shaped like this: '(("Alpha" . 1538) ("Beta" . 8036) ("Gamma" . 8990) ("Beta" . 10052) ("Alpha" . 12837) ("Beta" . 13634) ("Beta" . 14977) ("Beta" . 15719) ("Alpha" . 17075)...
Caseycash asked 18/5, 2011 at 19:29

6

Solved

I've got a string like "foo%20bar" and I want "foo bar" out of it. I know there's got to be a built-in function to decode a URL-encoded string (query string) in Emacs Lisp, but ...
Ingeringersoll asked 4/3, 2009 at 18:24

4

Solved

I've been working on an Emacs minor mode lately and part of its functionality was displaying images in separate buffers. So far I've been using a function like this: (defun create-buffer-with-imag...
Carrnan asked 5/12, 2014 at 17:23

2

Solved

I'm looking for some assistance, please, to measure the time of a function call when using a while loop -- i.e., the clock should stop when the function throws done. I found the following timer on ...
Corso asked 13/5, 2014 at 3:24

5

Solved

How can I convert a list to string so I can call insert or message with it? I need to display c-offsets-alist but I got Wrong type argument: char-or-string-p for insert or Wrong type argument: stri...
Georganngeorge asked 24/9, 2013 at 10:38

8

Solved

I am stumped trying to create an Emacs regular-expression that excludes groups. [^] excludes individual characters in a set, but I want to exclude specific sequences of characters: something like [...
Saddlebag asked 7/2, 2010 at 19:16

5

Solved

I want to read config in YAML with elisp code. Searched but didn't find ready-to-use parser in elisp. Did I miss something useful?
Thankyou asked 10/4, 2012 at 17:9

4

Solved

If I write this function in emacs-lisp: (defun factorial (n) (if (<= n 1) 1 (* n (factorial (- n 1))))) => factorial It works well for small numbers like 5 or 10, but if I try and calc...
Nalley asked 27/1, 2013 at 0:17

© 2022 - 2024 — McMap. All rights reserved.