Top new questions this week:
|
I think I found a bug in defmacro so I’d like to ask for confirmation before I make a fool of myself reporting something silly! Here is how to reproduce it: Define the following macro which simply …
|
In GNU Emacs Lisp Reference Manual, 2.8 Equality Predicates: Comparing circular lists may therefore cause deep recursion that leads to an error, and this may result in counterintuitive behavior such …
|
Publishers set a word count limit you have to meet in writing a manuscirpt. I am trying to write up the manuscript using markdown in emacs. Consider the example below. MWE # Results {-} ## Topic 1 {-}…
|
Right now, if I do “emacs foo1 foo2” emacs will open with foo1 and the welcome screen showing in two windows splitting the frame vertically. Instead, I want to be shown foo1 and foo2. …
|
I have the following function: (defun filter-repl-show-after (line-num) “Show lines after `LINE-NUM’.” (filter-repl–foreach-line (lexical-let ((line-num line-num)) (lambda () …
|
I want to do this replacement: \includegraphics{file } ==> \includegraphics{file} I wrote this code: (goto-char (point-min)) (while (re-search-forward “\\\\includegraphics{” nil …
|
I want to write an emacs macro via defmacro that takes a parameter which could either be (1) a constant string or (2) a symbol whose value is a string. Within the macro definition I want to be able to …
|
Greatest hits from previous weeks:
|
Is it possible to open a specific revision of a file in Emacs with Magit without changing the current branch? I have rebased some local changes to a revision where the modified functions were …
|
I’ve been using magit for a few months now and I like it a lot. But one thing I still do it in a terminal is cherry picking. What is a simple way to do this?
|
Sometimes my global keybindings are overridden by a major mode. An easy example is the following setting in my init file (global-set-key (kbd “C-j”) ‘newline-and-indent) But annoyingly this …
|
I have a table like this: | Verse No | Verse | | | <10> | | 1 | line1 li=> | | 2 | line2 li=> | I would like to view it as | Verse No | Verse | | …
|
I’d like to be able to run emacs on one computer: server $ emacs –daemon And then connect to it from another: local $ emacsclient -c server Is this possible? If so, how?
|
Since ediff-files and ediff-buffers result in apply: Searching for program: no such file or directory, diff error on windows machines. How to compare two files using Emacs on a windows system?
|
There’s a question on SO about splitting hunks using magit, and the two solutions given are to either stage the region (mark a region, hit stage), or to shrink/grow all hunks using + & -. That’s …
|
Can you answer these questions?
|
I frequently run shell sessions under Emacs (via C-x shell). My practice is to turn auto-saving on these shell-interaction buffers, so that the resulting (auto-saved) files serve as a persistent …
|
I would like to have a yasnippet to evaluate infix math expression on the current line. E.g., If the line is 1 + 2 = and I trigger yasnippet at the end of line, it will append the result at the end: …
|
Is there a way to pin a line at the top of the window, so that it stays there when scrolling? I’m writing a log viewer in Emacs Lisp, and I display each record with the fields padded so that it …
|