All Questions

0
votes
0answers
3 views

Indentation broken with all \input{files.tex}

Everything is in the title : a master.tex file contains several \input{subfileXX.tex} ; the indentation works in the master file but not in the subfiles. The TAB key acts like in LibreOffice.
0
votes
0answers
3 views

How to set mail-user-agent to mu4e-user-agent

Pressing , m in an org buffer does org-mime-org-buffer-htmlize and opens the htmlized message in message-mode but I want it in mu4e-compose-mode. How can I have this message opened in mu4e in order ...
0
votes
0answers
13 views

How to auto-complete links to headlines in org-mode?

Given an example.org file having two headlines, I would like to auto-complete links to 1headlines. However hitting M-\ on [[* suggests *bold* words but not headlines. Any ideas what I'm 2missing? * ...
1
vote
0answers
32 views

regexp: capture text to end of paragraph?

I want to search using regexp to capture plain text within quotation marks. There are two types. I succeeded with the first one, but need help with the second. I'll include both here. In the first ...
1
vote
0answers
19 views

Associate a buffer with a process

I am using Python with elpy. I am trying to use a Python shell opened on the remote computer using a shell buffer. I can cheat elpy by renaming the shell buffer with Python running in it to *Python*. ...
1
vote
2answers
39 views

Invalid read syntax “#”

I'm having trouble using: (add-hook ’before-save-hook #’gofmt-before-save) This is supposed to format the go code before saving. The error I get is: Debugger entered--Lisp error: (invalid-read-...
1
vote
0answers
22 views

Emacs evil-mode C-c/C-x to “cc”/“cx”. ( key translation)

I read in evil wiki that I can change prefix keys such as C-c or C-x and so on to cc, cx, but I'm not experienced in Elisp and I tried a lot of variants but I can only define c as C-c but not a cc to ...
0
votes
1answer
19 views

Minibuffer text alignment problem

The text that is displayed in my mini buffer is misaligned, like this https://imgur.com/a/htfRVI3 Specially all the columns are garbled, like its trying to wrap text? How can I make it so that they ...
0
votes
1answer
35 views

Filter for tags in plain org

I am sure this is a trivial question, but I just started out and honestly can't solve it. I have a plain org file. Where I created a couple of headlines, which I tagged. How do I list all headlines ...
0
votes
0answers
15 views

Calling a fuction after org capturing

Is there a way to call a certain function after a certain org-capture template has been run (successfully, ie. not aborted)?
0
votes
0answers
9 views

Using org-mode clock-report, how can I add a total row + cell with a formula that is automatically updated upon dblock update?

I am having trouble with using the formulas to create a cell that totals a column. Is it possible to dynamically add a line and a total cell to the bottom of clock report tables? because when I add a ...
6
votes
1answer
36 views

How to alphabetize strings with diacritics?

Q: how do I alphabetize strings with diacritics? Problem I have a long list of author names, some of whom have letters with diacritics in their names (e.g., "á" or "é"). I want to sort this list ...
2
votes
1answer
31 views

Emacs think there is an accented character in the keystroke

Version GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-31 Use emacs -Q with following config: (setq mac-command-modifier 'super) (...
5
votes
1answer
108 views

How do I delete all blank lines in a buffer? [duplicate]

Emacs 26.1 In buffer 1 2 3 4 I use command "delete-blank-lines". But it NOT delete ALL BLANK LINES. It's delete ONLY ONE BLANK LINE. Why? I need to delete ALL BLANK LINES. The result must be ...
0
votes
0answers
12 views

Customize dictionary for helm-dabbrev or dabbrev

I have a list of tag strings used in my org files. I would like to use helm-dabbrev or dabbrev (or some functions support dictionary) to tab-complete my tag strings. Can I customize the dictionary (...
2
votes
2answers
17 views

suppress command echoes from menu-bar items

When selecting items from the menu-bar, then the echo area echoes the selected menu item. Test this by selecting menu-bar -> file -> new window below, when you clicked this menu-bar item, then ...
0
votes
1answer
21 views

`create-image` works with file-location input but fails with string-of-bytes input

Am wondering if anyone can tell me what I'm doing wrong. Basically the commented out code fails.. thanks (let* ((img-file "/tmp/x.png") (img-str (with-temp-buffer (insert-file-contents img-...
1
vote
1answer
33 views

Changing input method in term mode

If I try to change input method in emacs and send to some text. buffer is read only message is shown in minibuffer. How can I use other input method in emacs term mode? I'm using emacs multi-term.
0
votes
0answers
17 views

When gdb debugging, can local window in emacs show c++ object's value correctly?

Suppose I've this code: #include "map" #include "string" using namespace std; int main () { map<string, string> m = {{"1", "2"}}; return 0; } If I set BP at "return 0" and when it's ...
3
votes
1answer
32 views

How can I export an Org subtree to HTML from the command line?

I have a list of links that I store in a subtree in an org file. Is there a way to export this to an HTML file using the command line? I figure it's something like emacsclient --eval ... with an elisp ...
0
votes
1answer
26 views

Highlight some specific text in Emacs

I am using web-mode for my php files: http://web-mode.org/ And I call often a php function which looks like this: __lg('Some text here', 'Global', NULL, FALSE); This function can be call with only ...
0
votes
0answers
7 views

ESS installation does not initialize flymake

I install ESS following these directions, adding these to ~/.emacs: (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (add-to-...
2
votes
1answer
126 views

Merge org tables

Let's say I have the following org-tables: | col1 | col2 | | 1 | 2 | | col3 | | 3 | What's the easiest programmatic way to get the following output: | col1 | col2 | col3 | | 1 | 2 | ...
0
votes
0answers
19 views

Help debugging: org-mode hangs on agenda tag search

I'm still pretty new to emacs and org mode, and I would really appreciate some help debugging a weird issue I'm having. When I try to do an agenda search by tag (C-c C-a m [some tag]), emacs just ...
0
votes
2answers
24 views

Matching two columns in a table

I deal with a two column table where I have to match data from two sources. The first column contains names of persons for whom, service is provided. The second, persons who are billed. My job is to ...
0
votes
1answer
28 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
0
votes
1answer
14 views

How to clang-format the current buffer on save?

Whats the best way to clang-format a C/C++/GLSL a buffer on save, that does nothing in the case there is no clang-format file found for a project?
1
vote
1answer
291 views

How do I silently write to a temporary file?

I made a modification in org-pomodoro to send the mode line to a pipe which I use in xmobar, but it keeps spamming my *Messages* buffer, thus making the line which displays it almost useless. (write-...
0
votes
0answers
9 views

Can not keep keybindings

How can I keep key-bindings in all modes? Following bindings are initially working though overwritten by another major mode e.g. org (defun dotspacemacs/user-config () (exwm-input-set-key (kbd "M-h")...
0
votes
0answers
61 views

Pedals needed for emacs - left for Control, right for Meta [on hold]

I'm now on the third attempt I've made over the years to use emacs. This is driven by now programming in lisp so this time I'm serious. I really want to use this editor. However, in my case, I am ...
2
votes
3answers
45 views

How to maximize my Emacs height on start-up?

emacs -fh would start emacs in window mode using full height available from the desktop environment. I'm tired of typing this -fh every time yet there doesn't seem to exist a command that does the ...
1
vote
1answer
15 views

How to change font size only for the buffer *Org Export Dispatcher*?

I'm using emacs with a large font, however I do not need the font to be too large on certain buffers and/or modes. For example, when I use neotree I use a different font and a smaller size, I do that ...
2
votes
1answer
26 views

Multiple transient (and colorful) mark-modes

When reading a book it's nice to have a marker to highlight some phrases. When re-reading my own code, I often would like to highlight several regions ("here is the set-up", "here is the conclusion", ...
0
votes
1answer
15 views

Adding speedbar support for a language major mode?

It appears to me that go-mode and speedbar are not working together - the .go files do not appear in the file list. https://github.com/dominikh/go-mode.el/issues/270 is a bug on go-mode which ...
1
vote
0answers
29 views

Can not refer to RESULTS in org-babel

I need to plot data evaluated in org-mode. Referring to #+RESULTS: returns org-babel-ref-resolve: Reference ‘myResult’ not found in this buffer whereas referring to #+tblname: works. #+RESULTS: ...
0
votes
0answers
23 views

elisp: create window layout with specific cycling order

I'd like to create a window layout like so: -----------|-------------- a | b -----------|-------------- d | c -----------|-------------- This is so that I can cycle from a ->...
0
votes
0answers
20 views

Indentation: 4 spaces everywhere

This morning, my Emacs changed its indentation rules, and now it indents by 2 spaces, specifically in JS and HTML. It even re-indents code on which I work to 2 spaces, which is unacceptable. Please ...
0
votes
0answers
17 views

Progression path to learn emacs evil mode style for complete noob [on hold]

I've seen this question, which is closed but useful. Most of the guides assume you start with emacs vanilla, but I would like to go down the evil path. What would you recommend to read/do to learn ...
2
votes
2answers
40 views

How to make M-x ansi-term behave like M-x shell (opening in new window)?

I use (global-set-key (kbd "C-c a") '(lambda () (interactive) (ansi-term "/bin/bash"))) to open a bash ansi-term. Unlike M-x shell, this "occupies" the whole buffer/frame. I am wondering if one ...
0
votes
2answers
7 views

How to change line COUNT for for evil-scroll-up

How to change line COUNT with C-u or C-d for evil-scroll-up or evil-scroll-down? From Spacemacs help: C-u (evil-scroll-up COUNT) C-d (evil-scroll-down COUNT) If COUNT is not specified the function ...
2
votes
1answer
21 views

Binding a key to 'open -a Terminal .' on macOS

I'd like to do something like this (global-set-key (kbd "C-c t") (kbd "M-! /usr/bin/open -a Terminal . RET")) ... in order to open a (real, the) terminal from the current working directory in macOS ...
0
votes
1answer
9 views

Issue binding space as leader with evil-mode and general mode

I am currently trying to set up my config so that I can use evil-mode while also using the space key as a local leader for some command while mapping my keys with general.el package. ;; hide tool bar ...
0
votes
0answers
18 views

Display annotation contents horizontally in pdf-tools *with* live-preview

When looking at annotations with the pdf-annot-list-annotations command from the pdf-tools package, I prefer to preview my annotation contents in a separate buffer, which is the default behavior. ...
0
votes
0answers
24 views

Using org-publish to markdown

I already have an org-publish set up that exports to HTMLand it works perfectly. Now, I am trying to export also to markdown, with the following block (setq org-publish-project-alist '( ;; ...
1
vote
1answer
30 views

midnight-mode add-to-list Format specifier doesn't match argument type

I've been trying to get midnight-mode to add to the following list. I have a feeling it has to do with an elisp error in my config I'm not seeing. It works fine with setq, but with add-to-list I get a ...
4
votes
1answer
54 views

Toggle window scroll bar

It's not clear to me how to disable a window scroll bar. I have frame scrollbars turned off: (scroll-bar-mode -1) I can enable a window scroll bar with (set-window-scroll-bars (selected-window) ...
0
votes
0answers
66 views

How to get Emacs use the Ubuntu login password for tramp

Ubuntu 16.04 Emacs 26.1 Emacs needs to open the file with root privileges. Here is my code: (secrets-delete-item "session" "Login") (secrets-create-item "session" "Login" "myParol" :method "sudo" ...
1
vote
1answer
28 views

Package to help display status of each git repo contained in a common directory

I have a directory and in the directory is a rather long list of git repositories. Is there a package or options where a dired listing of the directory would also add in the status of each git repo ...
0
votes
0answers
5 views

pdb within eshell up/down keys dont work

I am running python3 in eshell. When I use import pdb; pdb.set_trace() in my code, pdb opens within eshell. Everything works in pdb but the up/down keys don't work for running the previous command. ...
0
votes
1answer
21 views

Haskell code execution in Org-mode give error but in .hs file the code is good and working

i have this code: qs [] = [] qs [x] = [x] qs (x:xs) = qs [a | a <- xs, a < x] ++ [x] ++ qs [b | b <- xs, b >= x] when i save it to some file .hs and load it to ghci i can execute ...

15 30 50 per page