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...
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...
3
Given the path of a directory, how can I return the path of the newest file in that directory?
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" >
...
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 ...
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-...
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...
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...
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...
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?
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...
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...
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...
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...
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...
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...
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...
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"?
(...
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...
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.
...
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...
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...
© 2022 - 2024 — McMap. All rights reserved.