All Questions

2
votes
1answer
68 views

org-mode tikz drawing behavior abnormal

In below example, the text should be show on the right side if compile the latex code with pdflatex command. but in org-mode, the right side text missed: #+HEADER: :fit yes :imagemagick yes :...
0
votes
1answer
39 views

Search and replace isn't working in my function

I created the following function to remove macrons from vowels (this is a reduced version that only searches for the vowel "ā"): (defun nv/eliminatemacron () "" (interactive) (save-excursion ...
1
vote
2answers
33 views

How can I see diff for specific changeset?

I want an analog of git show $REV / hg diff -c $REV / svn diff -c $REV in Emacs when I know $REV. Currently I open full history via C-x v L and search for specific revision and then type d or l ((
4
votes
2answers
244 views

How to ensure latest version of Emacs?

How can I tell emacs init el to tell/warn me if the emacs version behind the latest cutting edge version published on the internet. I forgot to mention: I'm a mostly up to date MacOS user
7
votes
2answers
224 views

How can I have a second .dir-locals?

When collaborating on a project, certain editing variables are set to make sure everyone is producing a similar style of code. In Emacs, these are usually implemented as either file-local variables ...
0
votes
1answer
32 views

My terminal emacs displays weird characters (\u2506) for unvisiable characters in buffers

I'm currently in a new environemnt, my emacs in terminal displays weird character in files, GUI Emacs works fine. I don't know how to express this, please see the following details: Text edition: #...
0
votes
1answer
49 views

`C-x C-c` closes all windows on OSX

In OSX, pressing C-x C-c closes all Emacs windows instead of only the selected one. This isn't the bahavior I've come to esxpect from using Emacs on Windows, Ubuntu,or CentOS. What's up?
0
votes
0answers
18 views

Convert gnu indent options to emacs indentation settings

I've worked at two places where code is supposed to be indented/formatted according to gnu indent (ie there's a prescribed set of options to gnu indent that's to be used). Is there an easy way to set ...
0
votes
0answers
45 views

Make counsel-M-x look like Smex

I would like counsel-M-x (part of ivy) to display candidate commands horizontally, as Smex does. I followed the instructions here and created the following code: (defun my-ivy-format-function (cands)...
3
votes
2answers
299 views

Replace element of alist using `equal` even if key does not exist

I have an alist whose keys are strings, and I need to set the value for one of its keys. If the key is not present, I need to add it. So for example, (alist-set "a" "bb" '(("a" . "b") ("c" . "d"))) =&...
2
votes
1answer
159 views

problem with org-impress export

I want to use https://github.com/kinjo/org-impress-js.el with emacs-25.1 and the last org-mode. Here my configuration: (eval-after-load "org" '(progn (add-to-list 'load-path "~/.emacs.d/...
0
votes
1answer
16 views

How to get flycheck to do a syntax check immediately after opening a file?

I can't get flycheck to do its thing immediately after opening a file. It will check/find errors if I save the file. And it will check/find errors if I execute the M-x flycheck-mode command twice (i.e....
0
votes
1answer
53 views

Searching for org-tags programmatically (without regexp)?

The function org-tags-view allows you to build up semi-complex searches for tags using regexp: (org-tags-view t "+PROP1={value}&+PROP2={[1-2]}") However, regexp is very limited. Is there a way ...
1
vote
0answers
47 views

emacs ivy: disable ido completition

I am using GNU Emacs 26.2 and ivy from melpa. When I run M-x and enter: M-x magit-status ivy suggests: ido-enter-magit-status magit-status magit-status-mode I don't use use ido, I have no idea ...
0
votes
0answers
29 views

Preview LaTeX doesn't work when I delete the _region_.prv folder

Suppose I create a latex document in ~/junk/text.tex with the following conent: \documentclass{article} \begin{document} $x$ \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% ...
1
vote
1answer
37 views

Get autocomplete to display candidates only when tab is pressed

I've set up auto-complete on emacs to display completion candidates, and it seems to be working well so far. I'm finding the constant display (and changes in display) distracting when I type, and I ...
0
votes
1answer
35 views

Changing html renderer in Wanderlust

I would like to modify how mime/html entities are transformed to text in Wanderlust. At the very least removing background colors and excessive spacing. Is there any simple way to do so?
6
votes
3answers
240 views

Is there a way to set a list of display tab stops?

I have a tab-delimited data file I maintain in emacs. Much of the data has more than seven characters per field, so at the top, I have the following line: -*- tab-width: 30 -*- This keeps things ...
0
votes
1answer
11 views

How to deselect a symbol selected by `elpy-multiedit-python-symbol-at-point` for renaming?

I wanted to rename a variable, so I selected all its uses by C-c C-e (elpy-multiedit-python-symbol-at-point) and changed its name. How do I deselect it so that changes in one line don't appear in ...
0
votes
1answer
63 views

Capturing data in org-file to org-table

I have a simple template in emacs org-mode: \begin{flushright} Name: Phone no: Billed amount: Date \end {flushright} Details: I export the document to PDF and print it. I create multiple ...
2
votes
2answers
129 views

Managing libraries hosted on EmacsWiki

I recently learned that some former MELPA libraries are now available only from the EmacsWiki. Let aside security implications, Is there an equivalent of M-x package-list-packages for those ...
1
vote
1answer
47 views

How can I set tramp-histfile-override using tramp-connection-properties?

I'm trying to set a different tramp history file override based on connection-specific rules. My attempts have been along the line of: (add-to-list 'tramp-connection-properties (list (...
1
vote
1answer
22 views

How to change mode of buffer created by with-help-window

I have a buffer with name *fsharp info* which I want to change (programmatically) the mode from help-mode to my custom mode. I created a simple major mode fsharp-info-mode to highlight fsharp ...
0
votes
3answers
144 views

Edit commit messages in markdown mode

I configured git so that it uses emacsclient when editing commit messages. The only problem is that these messages are edited in fundamental-mode. Which hook should I use to have these commit messages ...
0
votes
0answers
19 views

pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be turned on when using png_read_image

I occasionally run into the following error when opening a new file with projectile: pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be ...
3
votes
2answers
88 views

How to save SVG image to disk?

Looking for a tool to programmatically generate SVG images, I found that Emacs 26 can do it out of the box! Example adapted from the Elisp reference manual: (require 'svg) (let ((svg (svg-create 400 ...
5
votes
1answer
695 views

Scope in lambda

In my .emacs conf file, I've got this function that adds a hook to set the compile-command based on the mode. It looks something like, (defun set-compile-cmd (mode-hook cmd) (add-hook mode-hook (...
0
votes
1answer
48 views

Search in readable eww buffer [duplicate]

I would like to open url in eww in readable-mode and find str. Below is my code that doesn't work: (defun my-eww-searh-readable (str) "Once-off call to `my-eww-searh-readable' after EWW is done ...
10
votes
2answers
563 views

Profile a command by wall time

The profiler-start command has options for cpu, mem, and cpu+mem. Is there a way to profile a command by elapsed time?
0
votes
1answer
33 views

org-clock-sum but excluding child time?

org-clock-sum gets the time logged for a header and all of its children. Is there a way to get the time logged ONLY for the top level header (but not its children?).
1
vote
1answer
31 views

delete-trailing-whitespace on save while always preserving location of cursor

I have the following before save hook defined which deletes all trailing whitespace and converts tabs to spaces (except in makefile mode since makefiles need tabs to work). This works great, however, ...
1
vote
0answers
33 views

Tramp hanging on writing or opening file

Tramp consistently hangs, for me, when opening or writing a remote file. None of the ‘why is Tramp hanging...?’ resources I've found seem to address my situation. What's odd is that this used to ...
0
votes
1answer
37 views

Prevent coloring of org code block during html export

How can I tell emacs/org to not syntax color the outputted html when I'm exporting using org publish project feature. Alt-: Eval: (org-publish "blogproject1") #+BEGIN_SRC sh :exports both ...
2
votes
1answer
38 views

Finding English Letters in a multilingual document

I have a document mainly Persian with English/French/German characters here and there. I want to append a command before Latin word(s) and a } at the end. Do you think it could be done in emacs? ...
1
vote
1answer
36 views

Set the major mode of a new buffer interactively

When creating a new buffer via: C-x b NonExistentBufferName RET RET I would like Emacs to ask me what major mode this buffer is going to use upon opening. Moreover, I want Emacs to infer the major ...
0
votes
1answer
35 views

`org-re-reveal` custom slide keyboard bindings

Per the reveal.js docs on keyboard bindings, I'd like to find a way to configure the keyboard bindings in the following way: Reveal.configure({ keyboard: { // left, down -> next 40: '...
0
votes
1answer
20 views

Set colour/font for markers [duplicate]

Is it possible to set the colour or font of markers (e.g. the ones set by gud in gud-display-line by using make-marker). The theme I am using shows markers in a difficult-to-see light gray. I would ...
0
votes
0answers
22 views

How to paste from clipboard/yanked text into the ansi-term in evil mode?

I'm macos user and quite new to emacs and going to set up my workflow pretty similar to what I have in vim. To reduce typing while using asni-term, I need to paste a yanked content directly via ...
0
votes
1answer
19 views

“Fix continuation lines” popup

Yesterday I started getting this popup in Emacs: Emacs-x86_64-10_10 Fix continuation lines? It happens after I write an email in mu4e and send with delay (Github repo). If I click Yes or No, the ...
1
vote
2answers
54 views

Jump to word in another window

I went from this issue Highlighting text in open (displayed) buffers/windows — searching for text from one buffer in another. I would like to write the function for these commands to jump to word in ...
2
votes
1answer
659 views

In Org-Mode Agenda view dont show “Scheduled: ” if time is provided

I have setup org-mode and org-mode's agenda view almost exactly as I like it. Almost, because there is something I still find annoying: Every scheduled item has a "Scheduled: " in front of it. To me,...
0
votes
2answers
48 views

How to get current language at point?

How can i get current programming language at current cursor. For example, if my cursor is inside script tag, then it should return js or javascript and if it is inside style tag, then it should be ...
0
votes
1answer
60 views

helm-gtags doesn't reflect the latest code change

I'm using helm-gtags-find-tag-from-here command a lot. It works fine as long as there is no change to the source file contains the definition of symbol under the cursor. However, if I modify the ...
0
votes
0answers
40 views

How to show the output of a command in a quick-fix window?

If I have a command that runs and generates the following output. /path/to/file.rst:1 /another/path/to/file.rst:42 How would I call the command so a buffer is opened and clicking on the line jumps ...
3
votes
2answers
408 views

Orgmode table error - shrunk field?

I'm very new to Emacs and Org mode, so I'm basically fumbling around. I'm getting an alarm bell ding whenever I type in an table in an *.org file. A message says "invalid function: org-table-with-...
1
vote
1answer
31 views

Select *Input History* buffer

The Emacs *shell* has a nice command history accessible via C-c C-l (comint-dynamic-list-input-ring). However, in classic Emacs fashion, the *Input History* buffer which displays the history is not ...
9
votes
2answers
1k views

Projectile with caching doesn't like new files

I use projectile for my project browsing. I have seen that it's really slow, so I turned on caching. Now it's fast (not blazingly fast, sadly). If I create a new file outside emacs itself, projectile ...
0
votes
1answer
21 views

Spacemacs: shortcut to jump from opened orgmode file to Neotree pane

I am using Spacemacs. So I have a Neotree pan that I open with Spc-f-t and that works fine. Then I can navigate down the tree to open a file with l and that will move the cursor from the Neotree pane ...
0
votes
1answer
43 views

Find a version controlled project's root?

Trying to deduce a project root, using vc I'm getting errors, involving strange non-ASCII characters. I.e. invoking (vc-find-root (expand-file-name (buffer-file-name (get-buffer "fname")))) I get ...
2
votes
1answer
112 views

How to make Dired sort on special characters in the beginning of file or folder names?

In Windows File Explorer (FE) I can give a file or folder a name with a special character as the first character, and thereby make them move on top when sorting the files alphabetically. For instance, ...

15 30 50 per page