# All Questions

16,089 questions
1answer
29 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" ...
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 ...
0answers
42 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)...
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....
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?
1answer
54 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 ...
0answers
27 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 %%% ...
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 ...
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 ...
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 ...
1answer
51 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 ...
1answer
38 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: ....
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 ...
2answers
128 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 ...
1answer
49 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) ...
1answer
40 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, ...
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 ...
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?).
2answers
34 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 ...
0answers
32 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 ...
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? ...
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 ...
2answers
243 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
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 ...
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 ...
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 :...
1answer
42 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: |---+---+---+---+---| | | | | | | |---+---+---+-...
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 ...
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 ...
0answers
12 views

### Creating a link to a file based on the path from a source block

I have a source block as follows: #+begin_src bash :session mysession load_environment # loads environment, along with \$path_to_dir variable #+end_src Following that, in my regular org text, I want ...
2answers
37 views

### Orgmode automatically increment an unordered list

I use org-mode for planning projects and tasks, etc. Say I am reading a book and I want to track my progress chapter by chapter. I want to create a list of repetitive elements with an incremented ...
0answers
28 views

### What are enclosures in elfeed?

The term is used many times here https://github.com/oystersauce8/elfeed/blob/master/elfeed-show.el Googled it: https://duckduckgo.com/?q=elisp%3A+what+are+enclosures+in+elisp&t=h_&ia=web not ...
1answer
34 views

### Why doesn't Emacs accept keyboard input in timers? [duplicate]

I've managed to write a timer that reliably causes keyboard input not to be accepted until I press Ctrl-G. The issue is, I don't know what causes the timer to lock up, what the stack frame is when it'...
1answer
44 views

### Search strings, do a list with first occurences and use elements of that list

I have a LaTeX source, call it main.tex. Suppose it contains one or more of the classical groups, like "GL", "SL", "SO", "U", "SU", "Sp", "USp" or the spin group "Spin". I want to write a script ...
1answer
16 views

### What is the equivalent of Ruby's “rake test” for project elfeed?

In a ruby/rails project, the "standard" way to run "the test suite" is rake # alias for rake test Some projects will mention (when there's a deviation)how to run tests in their README. How do you ...
2answers
24 views

### “buffer is not visiting file” when trying to tail “elfeed-log”

When I turn on auto revert tail mode on a elfeed-log buffer I get error "buffer is not visiting file" in the mini buffer. So now what?
0answers
17 views

### Some lisp errors not showing a backtrace

I have a few custom written methods in my init file. They run in to null issues - too often :) Anywhen, I noticed for some errors emacs pull up a backtrace/debugger prompt for me. But often the error ...
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 ...
1answer
27 views

### How can I set the default shell in spacemacs (Evil mode) when executing commands in a buffer?

I've downloaded spacemacs (configured with Evil mode) on a Windows PC and would like to use bash or wsl as the default. Example: Open the evil-tutor and execute command :!ls Desired Behaviour: I ...
1answer
15 views

### Lines vanish when using string rectangle with line-wrap

I paste this text, copied from IBM's social responsibility, into an Emacs buffer where the frame is 80 characters, or is small enough to cause a line-wrap: 02 Education and skills We are ...
2answers
58 views

### How to pipe large files through fold before opening?

On a regular basis I need to open files that have really long lines, which unfortunately causes emacs to grind to a halt. My understanding is that this is a long-term issue with the renderer. I've ...
0answers
31 views

### Emacs default font change in Ubuntu 19.04

I upgrades Ubuntu to 19.04, and it appears that the default font in Emacs has changed. Is it just me, or is it an Ubuntu/Debian change? Or has there been a change upsteram? Also, what is the name of ...
0answers
16 views

### Export to ODT Zip error

I am trying to get an org file exported to ODT and when I try to export I get the error: Running zip -mX0 filename.odt mimetype OpenDocument export failed: Unable to create OpenDocument file. Zip ...
0answers
18 views

### How to setup Emacs for live editing of ConTeXt documents?

I haven't found anything on how to set this up, such that latex-preview-pane works as expected, and I also couldn't find how to get the preview-latex working. It's mentioned in online docs but there's ...
0answers
27 views

### Running aspell in emacs with aspell key bindings

I am using aspell on the (Linux) command line, and have also started using it with mu4e in emacs to spell-check my composed messages using ispell-message. That command runs aspell, but with ispell ...
1answer
32 views

### Unable to quit emacs with Wrong type argument: hash-table-p, nil

I have some customisations in ~/.emacs.el. Today I refactored a piece that used dolist, directory-files, and find-file. I am now unable to quit Emacs in the normal way and I get this from the mini-...
0answers
35 views

### Force opening file in new buffer

Is there a way in emacs to open a file (or a dired directory) in a new buffer, even if there's a buffer with the same file (or directory)? find-file and find-alternate-file always return the open ...
1answer
13 views

### Creating a macro to change dictionary and run ispell

I would like to create a simple key binding (e.g. C-c s e) to spell check the (mu4e) email message I am composing using English (and use other bindings for other languages). I thought I'd simply ...
0answers
24 views

### Emacs not active when switching from different workspace

this repulses me to my core. Every so often when I switch to my emacs from a different workspace (awesome wm) the cursor appears just as an outlined box and is not active until I switch back and forth ...
1answer
54 views

### Accessing next/previous parenthesis instead of just the outermost one? (as with syntax-ppss`)

syntax-ppss gives the surrounding parenthesis. Is it possible to get the next/previous parenthesis using this API? (which has the advantage of caching the syntax tree and working with multiple ...

15 30 50 per page