All Questions

0
votes
2answers
44 views

How to redirect output from eshell to any open buffer in Emacs?

I have my eshell opened in a window and in another window I have *Scratch* as a open buffer. I want to redirect the output of a command like say ls to *Scratch*. Is it possible? If yes, then how can I ...
0
votes
1answer
40 views

Identify buffer by part of its name

Is there a way to select a buffer by part of its name using elisp? For instance, the ag package may create a buffer called *ag search text:MyPtyhonClass dir:c:/projects/my_module/* or the realgud ...
1
vote
1answer
18 views

Setting An Org Heading Property From Yasnippet

I have a yasnippet snippet for adding the boilerplate to my "daily review" org document. Here's what it looks like: # key: ndr # name: newdailyreview # -- * Accomplishments :PROPERTIES: :CUSTOM_ID:...
2
votes
1answer
40 views

Display JPEGs scaled to fit buffer, but PNGs without scaling?

In almost all cases, I want to see JPEGs such as photos scaled to the current buffer size. This is the default with image-mode. However, for PNG files, primarity screenshots, I want to view them ...
0
votes
1answer
20 views

How to export a pdf in landscape rotation

Following example.org is expected to be exported in landscape though the generated pdf remains in portrait. What should I change? ** A3 PDF Landscape #+LATEX_HEADER: \usepackage[a3paper]{geometry} ...
1
vote
1answer
39 views

how to convert “foobar?” into 'foobar?

I'm trying to turn a string containing a question mark into the corresponding symbol but: (intern "foobar?") returns 'foobar\? How can i do the same thing without the backslash? Also i'm interested ...
0
votes
1answer
17 views

How to get error messages for org-preview-latex-fragment?

(This took a long time to research, so I'm answering my own question, hoping to save others some time) Let's say I have a file like this: one by two is $\froc1{2}$ When I run M-x org-preview-latex-...
0
votes
0answers
23 views

Format strings for org-agenda-prefix-format

I want to customize org-agenda-prefix-format but am unable to find something in the reference explaining the syntax and the format strings I can use. The manual simply states: You can also ...
0
votes
1answer
31 views

Save excursion in an Org Agenda buffer?

I have a function that executes save-excursion from within an Org Agenda buffer, but it doesn't return the point to the agenda buffer once the body of the excursion finishes executing. Here is the ...
1
vote
3answers
57 views

Static Buffer List

I'd like to use emacs more, but I'm still used to some of my previous workflows I know from most modern IDEs. What my emacs lacks most is a static list of the open buffers or files. By static I mean: ...
0
votes
1answer
28 views

How do I get spacemacs working on machine without internet?

My idea was to set up spacemacs on a machine that has internet, then push the .spacemacs file and the .emacs.d/ directory to the machine without internet. However, when I did this and start emacs on ...
0
votes
0answers
15 views

org-export latex hangs

I'm on macOS 10.14.2 and Emacs 26.1 with the latest version of mactex (via brew cask install mactex). However, I cannot get my PDF to render with Org-export latex. I am looking at the *Org Export ...
0
votes
0answers
15 views

Ruby mode and/or snippets for jumping around statements

Is there currently a mode for the following examples: jumping to the end or beginning of a function the cursor is currently in. jumping around an if statement. ie from inside to the else, end and if ...
1
vote
0answers
12 views

Convert list to subtree without eating newline before next tree item

Say we have this file: * A - L1 - L2 * B If we execute org-list-make-subtree on any position within the list (the two lines with L1/L2), we get * A ** L1 ** L2* B So the conversion "eats" the ...
0
votes
1answer
24 views

Tramp with ssh not asking for password - too many authentication failures

I would like to use tramp to login to a remote server via SSH. It used to work effortlessly, but somehow it does not even ask me for a password any longer and tries wildly to login with I guess keys ...
0
votes
1answer
51 views

Emacs26 — (1) view PDF with Okular; (2) compile TEX file silently

I am running Emacs 26 built with GTK toolkit. AUCTeX has been successfully installed. 1) How to force Emacs to open an Okular session to view the PDF file, instead of opening another window within ...
0
votes
1answer
27 views

In a Helm prompt, how do I copy a candidate for editing?

Sometimes, I want to make a new file that's named similarly to an existing file. For example, I might want to copy a file to a second filename (foo.txt.backup), or move it to the right place (pretty-...
0
votes
0answers
8 views

Bookmark ERC connections?

I am playing with IRCCloud's experimental bouncer, and connecting to it requires entering a lot of data: Freenode: ircs://bnc.irccloud.com:6697 username: my-irccloud-username password: bnc:...
6
votes
3answers
48 views

What is the difference between refill-mode and auto-fill-mode in emacs?

I swear I tried to read documentations, but in practice, I could not tell the difference. I feel they are doing the same thing. I can turn both modes on, but I am not sure in what circumstance I need ...
1
vote
1answer
28 views

Finding next and previous entries in an avl-tree

I am using an avl-tree to maintain a sorted list, e.g.: (require 'avl-tree) (let ((tree (avl-tree-create (lambda (a b) (string-lessp (car a) (car b)))))) (avl-tree-enter tree (cons "b" 0)) (avl-...
0
votes
2answers
45 views

Customising helm-mini to have filterd buffers

In my current setup, not having customised it, helm-mini shows me all the buffers in a single list, it then shows the recent files and a section to "Create buffer". I am wondering if it's possible ...
1
vote
0answers
31 views

org-attach from a Dired buffer

I want to be able to attach files to a sub-tree from a Dired buffer. The org-mode manual gives instructions on how to do this in the link below: https://orgmode.org/manual/Attachments.html At the ...
0
votes
1answer
22 views

How do I move the cursor in helm?

How do I move the 'cursor' to the left/right in helm when typing a filepath? Currently my left arrow seems to be mapped to a backspace / clear word. I'm using Spacemacs in evil mode.
1
vote
1answer
19 views

How best to define nullable integer customizable variables?

I would like to define a variable using defcustom so that it can be customized by users of an emacs package. The variable is an integer (let's call it spam-override), and its function is to override ...
0
votes
0answers
20 views

How can I press a key combination including CTRL and ALT_GR on a Swedish keyboard?

I am running Emacs (26.1 - build 1, x86_64-w64-mingw32) on Windows 10 and I cannot type any key combination including CTRL and ALT_GR on my swedish keyboard. I stumbled on this when I tried to use ...
0
votes
0answers
23 views

How to open an IRC session using SASL?

I would like to exchange on Freenode using ERC, however I do not know how to authenticate with SASL as required. -xxxxxx.freenode.net- *** Lookup up your hostname... -xxxxxx.freenode.net- *** ...
0
votes
0answers
39 views

emacsclient sometimes inserts `[I]` at the start of a buffer it's opening

Often when I use emacsclient to open a file, it inserts a [I] at the start of the buffer, and I haven't been able to figure out why. It doesn't happen every time; in fact, it seems like it happens ...
0
votes
0answers
19 views

Interactive 'TAGS/PROP/TODO' query limited to particular level of tree?

I want to do a search where I interactively specify a tag (ideally with counsel-org-tag-style tag completion) and get an agenda buffer listing matching items at a particular level of the hierarchy (...
0
votes
0answers
63 views

`org-mode` Python source and results output

I was wondering if it is possible to export command outputs right after the commands in the org-mode. So instead of: #+BEGIN_SRC python :results output :exports results print(1) print('a') #+END_SRC ...
1
vote
1answer
22 views

Use Roman numbers while typing Devanagari

I use Emacs devanagari-itrans input method to type in Devanagari. But I prefer using the usual Arabic symbols for numbers (1..9) rather than the Devanagari symbols. It is cumbersome to keep switching ...
0
votes
1answer
30 views

Need to load initial file every time when restart emacs

I'm a newbie in Emacs who just is familiar with basic key bindings. I'm trying to learn more. I just learned to create initial file ~/.emacs.d/init.el and how to evaluate. But I find I need to load ...
0
votes
0answers
24 views

Customize the colour of term in description list

Currently the term and its description doesn't look different at all from each other (I have attached a image). I want the term to have a different colour, preferably red. I found some resources on ...
0
votes
0answers
22 views

Emacs Windows: nil turns into nil symbol

I took my entire Ubuntu 18.10/Emacs 26.1 .emacs.d directory over to a Windows machine and have Windows Emacs 26.1 using it. Seems to work all right; haven't really stress tested it yet. However, ...
0
votes
0answers
8 views

How to make dabbrev look into given directory for completion

I have approx 5000 org files in a directory arranged like this D:\dropbox\EMR\SURNAME NAME\YYYY-MM-DD.org I would like dabbrev to look into directory d:\Dropbox\EMR\ and its subfolders for completion....
2
votes
2answers
71 views

Is there a natural language date parser in Elisp/Emacs?

I use Emacs (Spacemacs) for email, and one of the most common tasks I have is converting an email containing a date and time to an item in my schedule. I noticed that calendar mode can convert certain ...
2
votes
1answer
32 views

How to prevent Emacs from creating two windows on startup Windows 10?

When I start Emacs not from the command line on Windows 10 it creates two windows, not one. Is there any way to make the blue window go away? I usually needs 4-5 instances of Emacs running so it ...
1
vote
1answer
75 views

AUCTeX with Sumatra PDF

I am syncing AUCTeX with Sumatra PDF on MSWindows. I used the instructions in https://www.barik.net/archive/2012/07/18/154432/ (I write here the setqs instead of customization) (setq TeX-source-...
3
votes
2answers
34 views

grep -l: Shouldn't I be able to load the files?

Example in eshell: $ cd ~/src/Sporth $ grep -rl Name * I get as output: -*- mode: grep; default-directory: "~/src/Sporth/" -*- Grep started at Fri Feb 1 17:07:41 grep -n -rl Name LICENSE Makefile ...
0
votes
0answers
13 views

How to include the log-note in clocktable-report

I want the clock-out notes for specific items under * PROJECT NAME ** task 1 CLOCK: [2016-03-21 Mon 09:50]--[2016-03-21 Mon 10:03] => 0:13 my comment on task1 ** task 2 ...
0
votes
1answer
18 views

terminal fringes and diff-hl

I use diff-hl to highlight changed lines. However it doesn't play well in terminal mode. I know that terminal Emacs doesn't support fringes, and it is better to use diff-hl-margin-mode instead, it ...
4
votes
3answers
66 views

How to ignore backup files (~) when running grep?

M-x grep can be used to find strings in files. But I'm not interested in backup files (those whose name ends with a ~). How should I ignore those files when using the grep command?
1
vote
0answers
30 views

AucTeX Plain TeX view refresh

I write *TeX in emacs with AucTeX, using pdf-tools as the viewer. When I compile a LaTeX document in AucTeX with C-c C-c the viewer in the other window automatically refreshes, but this does not ...
0
votes
0answers
27 views

#+include a ditaa diagram and evaluate interactively

I have a similar issue as the one in this post, but I have file header arguments so the ditaa source blocks results don't get added to a pdf via org-export dispatcher: ... #+PROPERTY: header-args :...
0
votes
0answers
31 views

Weird cursor position of emacs 26.1 on macOS 10.12.6

I am new to emacs and I met a weird emacs problem, which I don't even know is a feature or what :) Behavior: The emacs is in the text-mode and turned off all the plugins, and I want to type ["ls"], ...
1
vote
1answer
35 views

Setup helm for mu4e “jump to maildir”

In my mu4e setup, is there a way to have helm handle the "jump to maildir" list? I am aware of the package helm-mu but it does not seem to have this functionality.
1
vote
1answer
58 views

Using tab for both cycling and completion in org mode

I use company for completion and I have company-indent-or-complete-common bound to tab for certain modes. In org mode, tab is bound to org-cycle, which either cycles visibility or calls the global ...
1
vote
0answers
22 views

Rotate images in org mode

When I toggle inline images I can see the image. But I want to rotate it. There is an option to specify a custom width using: #+ATTR_ORG: :width 80 Is there a similar option to rotate the image?
1
vote
2answers
47 views

Different color theme for scratch buffer

I'd like my *scratch* buffer to have it's own color theme, different to the one I use elsewhere, so that I know when I'm working there. How can I do this?
1
vote
1answer
67 views

Labelling LaTeX sub-equations in org-mode

How to achieve subequation numbering a,b,etc like https://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics#Subordinate_equation_numbering in org-mode. I tried using the LaTeX snippet as it is and ...
0
votes
1answer
45 views

Emacs makes a lot of spaces for a new line

I do not know what I did, but emacs creates a lot of spaces for new lines. There's a demo: How to fix this?

15 30 50 per page