elisp Questions

5

Solved

Given a list such as (list "foo" "bar" nil "moo" "bar" "moo" nil "affe") how would I build a new list with the duplicate strings removed, as well as the nils stripped, i.e. (list "foo" "bar" "m...
Frankforter asked 28/9, 2010 at 17:32

3

Solved

I'd like to set up a function that does the equivalent of marking the whole buffer, and running C-u M-| to prompt for a command, pipe the buffer to the command and replace the buffer with the outpu...
Emotion asked 7/4, 2013 at 23:33

3

Given the path of a directory, how can I return the path of the newest file in that directory?
Folkrock asked 17/6, 2015 at 8:32

4

I see I can go back history of command by using "M-p" in minibuffer. But I want to see all of command I used in minibuffer. Thanks.
Bernadinebernadotte asked 16/2, 2014 at 11:29

2

Solved

I need to export absoluted Image url in html in emacs org-mode file: when i write the following code: [[file:/images/a.jgp]] export of html code is : <img src="file:///images/a.jpg" > ...
Enkindle asked 4/2, 2013 at 9:57

4

From reading introductory material on Lisp, I now consider the following to be identical: (list 1 2 3) '(1 2 3) However, judging from problems I face when using the quoted form in both Clojure ...
Appendant asked 9/10, 2010 at 8:7

3

Solved

I am using Aquamacs on OS X 10.9.4. I have the following lines in my Preferences.el file (which is similar to the .emacs init file): (add-to-list 'load-path "~/.emacs.d/") (require 'fill-column-...
Newsmonger asked 6/8, 2014 at 19:48

4

Solved

I would like to have a global keyboard shortcut that shows the value of a variable. However, the variable's value could change according to the current major mode in the current buffer. I tried to...
Retentive asked 5/1, 2014 at 19:12

6

Solved

I have various things set up in my 'before-save-hook. For example, I run 'delete-trailing-whitespace. This is what I want in almost all occasions. But sometimes, I'm working on files that are shar...
Clerihew asked 16/2, 2013 at 18:2

4

Solved

Is there a way to switch between buffers without having to go through the buffer-list, or writing the name of the buffer that I want to switch to? More specific I wonder if emacs can tab between bu...
Areta asked 9/11, 2010 at 11:32

4

Pretty straightforward, but I can't seem to find an answer. I have a string of 1s and 0s such as "01001010" - how would I parse that into a number?
Sajovich asked 20/8, 2019 at 2:14

10

Solved

Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand: (repeat-last-command) do the last C- or M- command I just exec...
Interrupted asked 9/11, 2008 at 11:37

6

The following Emacs Lisp function takes a list of lists and returns a list in which the items of the inner lists have been concatenated to one big list. It is pretty straight-forward and I am convi...
Hermosillo asked 9/6, 2009 at 9:28

4

Solved

I'm making an outline for my thesis using org-mode, and I'd like to show all headings up to a certain level (e.g. all level-1 and level-2 headings). I haven't found anything about that in the org...
Doubleacting asked 1/6, 2011 at 8:32

2

Solved

I have a convinience defun in my init.el to do some logging (defvar log4me::loglevel 5 "Global loglevel.") (defun log4me (level logmsg) "Log message." (interactive) (when (>= level log4eli...
Maunsell asked 1/11, 2014 at 15:35

3

Solved

There are plenty structural markup elements in org-mode like *bold* or /italic/, but they are visible in the org-mode text, which is good, if the file is intended for export, and bad, if it is inte...
Puce asked 10/6, 2012 at 14:45

7

According to the Emacs documentation, Directory Variables apply to all files below a directory that contains an .dir-locals.el file. How can I, in that file, set a variable to the full path that c...
Castanon asked 25/10, 2010 at 6:39

4

Solved

I'd like to do (destructuring-bind (start end) (bounds-of-thing-at-point 'symbol)) But bounds-of-thing-at-point returns a cons cell and not a list, so destructuring-bind doesn't work. What could...
Undersea asked 18/7, 2013 at 7:44

2

Solved

Does emacs have support for big numbers that don't fit in integers? If it does, how do I use them?
Takahashi asked 3/9, 2009 at 6:1

3

Solved

I'm trying to pass one method to another in elisp, and then have that method execute it. Here is an example: (defun t1 () "t1") (defun t2 () "t1") (defun call-t (t) ; how do I execute "t"? (...
Brocklin asked 17/10, 2008 at 18:22

3

I want to be able to use the normal M-x rgrep workflow (entering a path, a pattern and displaying the linked results in a *grep* buffer) but using git grep instead of the normal find command: find...
Ruelas asked 2/9, 2014 at 22:38

6

Solved

I have decided to check out Emacs, and I liked it very much. Now, I'm using the Emacs Starter Kit, which sort of provides better defaults and some nice customizations to default install of Emacs. ...
Regulus asked 1/8, 2009 at 18:34

2

Solved

in emacs in haskell-mode, I wanted to change the command "C-x C-s" to "C-x C-s" followed by "C-c C-l". Taking a cue from : Haskell.org : Emacs/Keybindings and simple usage I tried insert...
Scoreboard asked 11/8, 2012 at 18:19

6

Solved

I want to declare all packages that I want to use in emacs in a init.el file. I wonder if its possible to load the missing packages with e.g. MELPA when I startup emacs without going through the li...
Trichosis asked 11/1, 2014 at 16:39

3

I've been randomly getting the following error in emacs: Variable binding depth exceeds max-specpdl-size ...and I've been getting it at very random moments. After researching this, it seems as...
Rejection asked 24/8, 2009 at 13:54

© 2022 - 2024 — McMap. All rights reserved.