elisp Questions

3

Solved

I have emacs behaving more or less how I want it to by using this common bit of elisp: (defun toggle-current-window-dedication () (interactive) (let* ((window (selected-window)) (dedicated (win...
Coleoptile asked 22/11, 2010 at 10:52

4

Solved

When you copy text from one buffer to another (M-w and C-y) it copy text with font-lock and when you paste it it display with colors from the buffer I copied the text. Is it possible to change that...
Thais asked 25/2, 2014 at 19:54

2

I am using emacs as python IDE. I am having flymake installed, however, it shows the following error whenever I work with a .py file Error (flymake): Flymake: Failed to launch syntax check proce...
Religiosity asked 15/12, 2012 at 18:18

3

Solved

In common lisp I can do this: (mapcar #'cons '(1 2 3) '(a b c)) => ((1 . A) (2 . B) (3 . C)) How do I do the same thing in elisp? When I try, I get an error: (wrong-number-of-arguments map...
Aerator asked 27/1, 2012 at 3:42

5

Solved

How can I enable Show-Paren mode only for *.el files? I have tried (add-hook 'emacs-lisp-mode-hook '(lambda() (show-paren-mode 1) )) But it still enables Show-Paren mode for all the cases. Ev...
Hebron asked 22/4, 2012 at 9:59

5

Solved

Commands entered after pressing M-x can be viewed using the up/down arrow keys. How can I get a list of all the commands including menu bar invocation, commands triggered using mouse clicks, etc. ...
Thistle asked 7/3, 2012 at 13:44

5

Solved

There are several similar setting functions: set & setq set-default defcustom custom-set-value custom-set-variables customize-set-value customize-set-variable so, what's the difference bet...
Stowage asked 21/8, 2012 at 15:55

8

I'd like for the C-x o command (next window) to include windows in other frames as well as windows in the current frame. Does anyone know how to pull this off? Is there another command that I sho...
Absorption asked 27/7, 2012 at 19:8

5

Solved

I have menu-bar-open bound on f11 and menu-bar turned off, and because of that, f11 calls tmm-menubar, which is inconvenient and doesn't have mode-specific menu items for some reason (like org and ...
Mallett asked 24/6, 2012 at 8:47

9

Is it possible to present Markdown rendered in an Emacs buffer using Emacs' own buffer text formatting capabilities? Emacs in graphical environments has rich text presentation capabilities (font st...
Basile asked 4/8, 2010 at 20:19

14

Solved

I need to get the full path of the file that I'm editing with emacs. Is there a function for that? If not, what would be the elisp function for getting that? How can I copy the result (path name)...
Pelerine asked 8/9, 2010 at 15:49

3

Solved

In Emacs, some variables have special behaviors when set via M-x customize that do not get triggered when you set the same variable via setq. Is there a programmatic way to set such variables such ...
Demulsify asked 30/8, 2013 at 23:31

12

Solved

How do I close all but the current buffer in Emacs? Similar to "Close other tabs" feature in modern web browsers?
Sarcous asked 5/8, 2010 at 17:29

5

Solved

I'd like to make a simple change to Emacs so that the next-buffer and previous-buffer commands (which I have bound to C-x <RIGHT> and C-x <LEFT> will skip over the *Messages* buffer. I...
Figureground asked 14/1, 2013 at 17:31

2

Solved

I want to implement dynamical text replacement (only the display is replaced, the actual stored file is not replaced) for Emacs, using Elisp. For example, in LaTeX documents, I want to type \alpha...
Nils asked 28/11, 2012 at 7:42

8

Solved

I am trying to learn lisp, using emacs dialect and I have a question. let us say list has some members, for which predicate evaluates to false. how do I create a new list without those members? som...
Natashianatassia asked 10/2, 2010 at 6:25

3

Solved

How do you check, in elisp, if a list contains a value? so the following would return t: (contains 3 '(1 2 3)) but (contains 5 '(1 2 3)) would return nil.
Headstock asked 11/9, 2009 at 4:28

3

Solved

I wanted to create a function, that returns a composition of several other functions, such that (funcall (compose 'f 'g) x) == (f (g x)) I feel that I miserably failed on this. My best attempt s...
Tabanid asked 1/11, 2012 at 9:58

5

Solved

I need to use some native code and I would like to try elisp as a scripting language. Is it possible to call native functions which are implemented in dynamic library (dll in windows)? Or the only...
Palladio asked 13/2, 2009 at 8:44

5

Solved

I am looking for a way to have the Emacs compilation buffer triggered by M-x compile, M-x recompile or some compile on save script only appear when the compilation exits either with an error or a w...
Tensiometer asked 15/7, 2013 at 16:34

3

Solved

In emacs there is buffer-file-name that gives the full path to a file. But is there a way to get only the directory of the file loaded in the current buffer?
Dearr asked 28/1, 2015 at 15:35

4

Solved

Assume there is a sample function defined in a library (this question's precondition is all definitions in this library cannot be modified, something like "read only"): (defun sample () (foo) (b...
Kibe asked 10/4, 2013 at 2:56

4

Solved

I'm writing my own mode in Elisp. It's basically a simple crud application showing rows of data which can be manipulated via the minibuffer. I'd like to create a view for these rows which looks lik...
Contexture asked 30/6, 2012 at 8:20

4

Solved

What does this do? (add-hook 'compilation-mode-hook #'my-setup-compile-mode) ...and is it different than (add-hook 'compilation-mode-hook 'my-setup-compile-mode)
Pimental asked 23/4, 2010 at 20:14

5

Solved

How can I define a command in paredit mode that swaps parentheses and square brackets?
Sweeny asked 8/1, 2013 at 10:42

© 2022 - 2024 — McMap. All rights reserved.