All Questions

0
votes
1answer
19 views

Updating pyenv when switching to a Python buffer

I use pyenv to maintain my python versions and virtualenvs. I really like the way you can create a local .python-version for each project, pointing to the version I need. I use pyenv-mode which allows ...
1
vote
3answers
52 views

Why do local-set-key and local-unset-key not work interactively? [duplicate]

My local-set-key and local-unset-key, used interactively M-x ..., are not working as expected, namely to bind or unbind a key for a specific buffer. Case in point: I am editing a LaTeX (.tex) file ...
1
vote
2answers
52 views

How can I edit my function to work to kill lines not matching RegExp [duplicate]

I made a function to filter unimportant lines from a CSS file I copied. I only want lines with the words "color" and "background" to remain in my buffer after the point the function is run. When I run ...
0
votes
0answers
25 views

use-package do not bind in latex-mode-map

this is a part of my init file (use-package tex-site :ensure auctex :mode ("\\.tex\\'" . latex-mode) :bind (:map LaTeX-mode-map ("<f5> <f5>" . TeX-command-save-buffer-and-...
0
votes
0answers
17 views

How to use ack options in Spacemacs?

From the command line, I searched using ack with the ignore-case option: ack -i bragg That worked. How to use ack options in Spacemacs? The -i option did not work with function spacemacs/search-ack:...
1
vote
1answer
48 views

How to return focus to dired window after killing buffer opened from dired?

Sometimes I use dired to view or edit several files in one folder, one after the other. Dired is open in one window, and I open the files in another window by typing o in dired. When I finish with one ...
1
vote
1answer
114 views

emacs ediff show all buffer diff word-wise (like vimdiff)

Issue description When launching Ediff color scheme is very poor and i do not have word wise diff highlight. It seems that diff color faces are not activated at ediff startup. I use emacs -Q to ...
0
votes
0answers
34 views

Why AUCTeX/pdflatex show me help in Japanese?

I had this error message displayed to me by AUCTeX (already corrected using \ddot{\boldsymbol x}) ERROR: Extra }, or forgotten $. --- TeX said --- <recently read> } l.51 \[ \boldsymbol M\ddot\...
1
vote
1answer
30 views

How to save font alterations?

Let's say I have this in the buffer: 'BE BOLD' I select it and type Alt-o b. It is now displayed as 'BE BOLD' I Save, quit, reopen: The font change is lost. How to keep the font change, please?
0
votes
1answer
23 views

Does orgmode have the option to restrict the task states or categories in the editing page?

Is there a way to restrict the TODO types or categories in the editing page? I know about filtering the agenda view, but I need the option to see only some tasks states in the editing page, such as ...
2
votes
2answers
51 views

AUCTeX, caching document classes over an Emacs restart

The first time I create a new LaTeX document* in a new instance of Emacs AUCTeX scans my TeXLive installation to find all the available document classes . This scanning, due to the complexity and ...
0
votes
0answers
13 views

How to prepend new line to results printed in *SQL* buffer with sql-send-region in a sql-mode file [duplicate]

I would like for sql buffer queries from SQL mode to print with a new line above the query results. Right now this query SELECT id, user FROM users; using sql-send-region (C-c C-r) prints this: ...
2
votes
1answer
28 views

bookmark-alist-from-buffer: Cannot read definitions in bookmark file: Invalid read syntax: “#”

The above error occurs when I try to set a bookmark on a help buffer. The bookmark looks like this: #1=(#("Some bookmark" 0 3 (bmkp-full-record #1#)) (buffer-name . "*Help*") (visits . 0) (time . #2=(...
0
votes
0answers
23 views

All Magit commands over tramp execute but “hang” in Emacs - Pressing ctrl+g causes buffer to update

I am currently using magit to work on remote git repositories. When I run any commands, Emacs seems to "hang". When I press ctrl+g, I am taken to the buffer I wanted. This is most prevalent when I am ...
1
vote
0answers
24 views

Emacs plugin to browse Julia documentation, at point or textual

It is quite annoying that I have to leave emacs to browse Julia documentation. Are there any nice plugins to get the documentation at point or that provides a nice direct textual interface to the ...
0
votes
1answer
18 views

How do I let ert know where my tests are defined?

What I'm doing: If I define a test like: (ert-deftest tmp-test () "failing test" :expected-result :failed (should (eql (+ 1 0) 2))) and then I run M-x ert-run-tests-automatically ;; ...
0
votes
0answers
15 views

Magit is not able to render the font [duplicate]

I am trying to use Magit but whenever I tried running it, somehow fonts are not rendered properly. I am using MacOS and below is the init.el config. I am using powerline font (Meslo) (use-package ...
1
vote
1answer
31 views

Generate different uuid in every line?

I need to replace guid_here by different uuid. provider [guid_here] [guid_here] provider test again [guid_here] test again2 [guid_here] test [guid_here] again2 I use this approach. Install package ...
0
votes
0answers
33 views

Use counsel/ivy to insert org-links?

I'm trying to use counsel/ivy to insert org links, but I haven't found a way to do this. I just want something to replace org-insert-link with a counsel interface. Can anyone help?
3
votes
1answer
51 views

Profiling simulated interactive editing

Is there a way to profile or time code that simulates interactive editing? The gist of what I want to do is that I have some code that runs during font-lock, and sometimes it makes editing sluggish. ...
3
votes
1answer
81 views

Matching repeating tasks in org-agenda search

I am trying to create an agenda search that matches on the DATE property of certain entries. This works fine for one-off tasks/events; however, when I have a repeating task whose DATE is of the form &...
1
vote
1answer
37 views

untabify within a rectangular region?

How may I call untabify against a rectangular region? This screenshot illustrates what I am trying to accomplish. I have a messy mixture of tabs and spaces in the region I have circled. untabify ...
0
votes
1answer
32 views

Android manifest - find launch activity name programmatically

Is it possible to find the launch class name programmatically? For example, if the manifest is as below: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" ...
0
votes
0answers
21 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
47 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)...
0
votes
1answer
17 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
50 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?
1
vote
1answer
56 views

Configuring lsp-mode to run elm-language-server

I'm trying to run lsp-mode for elm development and according to lsp-mode elm is supported. Also according to that link, I should only have to clone the elm-language-server repository, run npm install ...
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
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 ...
1
vote
1answer
38 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
54 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 ...
0
votes
1answer
52 views

More detailed org-capture into org-table template?

(Disclaimer: I know this may seem like a very specific question. But: I haven't found the answers to similar questions to be close enough to what I need. I hope to get an answer that is easily ...
0
votes
1answer
39 views

Matching org tasks against an interval of values

In a list of files I have org tasks with the property E such that each E is marked with an interval range. * Some task1 :PROPERTIES: :E: [E1, E3] :END: * Some task2 :PROPERTIES: :E: [E4, E7] :END: ....
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 ...
2
votes
2answers
130 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
50 views

org-agenda-write doesn't respect org-agenda-dim-blocked-tasks

Running a fresh Emacs session with emacs -Q, I evaluated the following: (setq org-agenda-files '("~/index.org")) (setq org-enforce-todo-dependencies t) (setq org-agenda-dim-blocked-tasks 'invisible) ...
0
votes
1answer
42 views

Python Documentation String Indent In Auto-Fill Mode (Emacs 26.2)

I've noticed a peculiar behavior when using auto-fill-mode editing Python code. For example if I start typing the following (fill-column is set to 79): def some_function(keyword_argument0, ...
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 ...
0
votes
1answer
34 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?).
2
votes
2answers
36 views

How to change emacs font size on the fly from commandline?

Using 1autorandr for multimonitor detection, the script below is runned each time I dock my machine. In order to use spacemacs on the 4k monitor I curently must hit M-x zoom-frm-in. What command ...
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 ...
2
votes
1answer
39 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? ...
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 ...
4
votes
2answers
252 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
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 ...
0
votes
0answers
41 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 ...
2
votes
1answer
72 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
44 views

Org-mode: customize delimiter for horizontal line in tables

The default column-delimiter for horizontal lines in tables is a + sign. How to change it to vertical bar |? Currently, it looks likes this: |---+---+---+---+---| | | | | | | |---+---+---+-...
0
votes
1answer
46 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 ...

15 30 50 per page