# All Questions

16,701 questions
Filter by
Sorted by
Tagged with
61 views

### Run command on remote host after org-publish

I try to setup a basic, easy website workflow. Right now I can simply press C-e P x project-name, export and upload my Org, image, and whatnot files as HTML. As I don't want to upload that directly ...
839 views

### Spelling check in Emacs 25.2 on Mac OS Sierra

I am new to Emacs and I have a hard time to have spelling check when I use Emacs+AUCTex. Here is a list of what I have done so far: I read on a post saying that I should not install Flyspell. So I ...
10 views

### How to display js2-mode warnings

I am running Emacs 26.1 on Ubuntu 16.4. I am writing Javascript using js2-mode. When the linter underlines a line of code, I want to know what error or warning it has detected. For example, in this ...
353 views

I tried to install emacs and in an attempt to install MELPA, tried: (this is my init.el file) (package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-...
657 views

### Human readable directory tree with org-attach

By default, org-attach.el names project folders, using a UUID scheme, which is paired with headlines in org-mode, via the :PROPERTIES: drawer. I would love to find a way to make this directory ...
17 views

### TeX-view replaces current buffer

I am encountering an issue since I switched to dev-branch: when I run the TeX-view command with only one active buffer (my .tex file), instead of opening a new side-window and displaying the PDF there,...
163 views

### Edebug REPL / IELM

I toggled edebug-defun on a function I'm studying. Once the debugger kicks in, how can I fire a REPL with access to the symbols being debugged? I know it's possible to evaluate commands with e in ...
9 views

### shell code block in win10

I wish to run shell code in org sh code block as below: #+BEGIN_SRC sh :results output dir c:\ #+END_SRC #+RESULTS: : c:\>More? The output is not as expected! BTW, I have add below line in my ....
566 views

### Is there an idiomatic way of reading each line in a buffer to process it line by line?

In Python I'd do the following to process a file line by line: with open(infile) as f: for line in f: process(line) Trying to look up how to do the same in elisp (with buffers instead of ...
2k views

### How can I evaluate elisp in an orgmode file when it is opened?

I have elisp code I'd like to run in orgmode files when they load (different for different files, and defined in the file itself). Is there a way to do this? I didn't see anything in http://orgmode....
43 views

### How can I split LaTeX inline math from preceeding or following sticked words?

I have this LaTeX code: Lorem $math$ ipsum $math$dolor sit consecteruer adipscing elit, sed do eiusmod tempor incidunt ut labore et dolore magna aliqua. $math$Ut $math$ enim ad minim veniam$math$, ...
50 views

### How can I tell when non-interactive bash process is done executing a command?

I'm trying to write a different shell command line interface where the input line stays at the top. Output of previous commands should stack below: > INPUT LINE LAST OUTPUT (of command 1) ...
15 views

### Iterate with both value and index

I want to iterate over a list with both the index and the value in the loop. Currently, the code looks like this: (let ((my-list '(a b c))) (cl-loop for index below (length my-list) for ...
29 views

### Elisp review, guidance and help [on hold]

I'm new at customizing Emacs, and I need guidance and help on a little something I'm trying to achieve. The plan is to have the possibility to enter in a custom "writting mode" from any org file. If I ...
72 views

### idiomatic way to lexically scope variables in a cl-loop body

Here is some asynchronous code in a cl-loop: ;;; foo.el --- -*- lexical-binding: t; -*- (let ((my-list '(a b c))) (cl-loop for index below (length my-list) ...
18 views

### Improving org-block-begin-line, splitting in several faces

The face org-block-begin-line allows to customize the first line of the following block #+BEGIN_SRC lang :var arg1=1 arg2=2 ... #+END_SRC However, I would like to customize the faces within the line,...
19 views

### dired-do-copy in tramp does not go to local when \ C-j is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to ...
739 views

### How do I cut and paste effectively between applications while using EXWM?

For example, I am trying to copy the URL line from Firefox into an org mode buffer. The usual cut and paste keys for Firefox (C-c C-v) do not work, and neither does (M-w C-y). To copy from Firefox (...
278 views

### how to have EMACS use the right alt key the same as the left alt key

I regularly use the backspace key to delete whole words at a time to the left of the cursor, but this would be a MUCH easier keystroke if it could be done one-handed. For that to happen - I would ...
20 views

### emacs c++ gud cannot skip non existing file, making it unusable

I have this file: #include <string> using namespace std; string remove(string s) { return s; } int main() { string s1 = "aaaa"; string s2 = remove(s1); return 0; } g++9 ...
165 views

### Remove emacsclient startup message

How do I go about removing the message "When done with this frame, type C-x 5 0" when launching emacsclient? I know it's possible to controll the startup message of emacs when not launched as a ...
26 views

### Org-ref associate entry with local file

I am a mendeley user trying to sync org-ref with my local biliography (bibtex format). I'm having some trouble to run the function org-ref-open-pdf-at-point. Running this function while the cursor ...
176 views

### In org-mode, how to export sparse tree in buffer without unmatched top-level headings

I'm using sparse trees to find tasks I need to work on in my buffer. The matching headlines are shown, without siblings but with their parents. For example, imagine I have the following tree: * A ** ...
45 views

### How can I reliably create latex classes in org mode?

I'm trying to modify my .emacs to create my own classes, I tried this article and using org-latex rather than ox. I also tried this different approach. I tried enclosing the above classes with ...
27 views

### insert cursor postion in org-structure-template-alist

It's easy to insert source code template in org 9.1 by it is configured as ("s" "#+BEGIN_SRC ?\n#+END_SRC") Of them, ? for cursor position, unfortunately, it does not work in 9.2 Custormize ...
412 views

### where to put .el files on Windows10 for loading at startup

I'm using emacs as a bog-standard program in Windows, and also from the command line in cygwin. They both use the same installation of emacs. I just grabbed yaml-mode.el off the net but I can't ...
580 views

### How to limit exported column view to a filtered subset of your headings?

I have a big org-mode file using tags and TODO keywords and properties. I would like to display a summary of "Effort" estimates on subsets of the headings with sums as we go up in the section ...
236 views

### Can't set default servers in ERC layer

My user-config looks following: (defun dotspacemacs/user-config () (setq-default dotspacemacs-configuration-layers '((erc :variables erc-server-list '(("chat.freenode.net" :...
206 views

### Can't install Plantuml-mode — MELPA Package list Incomplete (Mac)

I'm trying to install plantuml-mode based on the instructions here: https://github.com/skuro/plantuml-mode I'm told to try the following: M-x package-install<RET> plantuml-mode<RET> ...
10 views

### How do I get rtags to work in spacemacs?

On a recent pull of both rtags and spacemacs, but I can't seem to get rtags to work well. There is no keybindings for jumping/searching to/for symbols and the definitions either. I've seen a couple ...
15 views

### org-publish-project fails because of defective org-links - repair links automatically or ignore them?

I'm trying to "quickly" export my notes ans tasks from org-mode to a html-page with org-publish-projects. I had a working setup some years ago and I'm trying to reactivate it, but doing the export ...
165 views

### How do I attach a custom function to process org-mode babel shell output?

I have a a function (defun display-ansi-colors () (interactive) (let ((inhibit-read-only t)) (ansi-color-apply-on-region (point-min) (point-max)))) that I got from here: http://stackoverflow....
140 views

### See total number of entries in Global TODO list

Would it be possible to list the total number of entries in a global todo agenda view? I would like to have a quick way to estimate progress daily. So instead of: Global list of TODO items of type: ...
33 views

### How can I disable a function when another function is triggered? [closed]

How can I disable counsel-find-file during dired-do-copy and copy-file.
93 views

### Failed to add wikinodes to ‘org-font-lock-extra-keywords

I want to use org-wikinodes (http://orgmode.org/worg/org-contrib/org-wikinodes.html) Org wikinode is activated : (setq org-modules (quote (org-wikinodes))) I can follow wikinodes links with C-c ...
116 views

### Evaluating org-babel-clojure blocks returns all form evaluations

I'm trying to set up babel for use with Clojure according to http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html#org85bc1ec and I can evaluate code but when I evaluate a block with ...
598 views

### How to use org-capture without creating ID property?

Whenever I create org-mode entries using org-capture they automatically get an ID property. Is it possible to disable that? I'm using org mode version 9.0.5.
75 views

### Change overlaid text of an outline header?

Q: how do I add a new outline header regexp but change the overlaid text? I often write presentations with Beamer in LaTeX. As such, there are a lot of frame (ie, "slide") environments: \begin{...
248 views

### Preventing parent tasks from switching TODO keywords

I have several parent-level tasks that I manage as projects so I've created TODO keywords to support project management as follows. (setq org-todo-keywords '((sequence "TODO" "NEXT(n)" "DOING(!)" "|...
40 views

### How to display intermediate code block results?

Here is an example to let me explain what I would like to achieve: #+NAME: heavy_computation #+BEGIN_SRC shell :results table echo -e "A\t32\nB\t17" #+END_SRC #+BEGIN_SRC python :var data=...
166 views

### Trouble with ocp-indent in spacemacs on mac

I'm having trouble setting up spacemacs for ocaml on my mac. Specifically, spacemacs can't seem to find ocp-indent. Whenever I enter a new line, I get the following message: "Searching for program: No ...
86 views

### Break (C-c C-c) in ESS-remote R shell

I am running my R scripts on a remote shell using M-x shell ssh -X -C name@server.edu srun -p nodeX --pty R (slurm command to start R) M-x ess-remote and select 'R' everythink works fine, until I ...
1k views

### Coding System utf-8 on Mac - Which one and why as default?

I want to change my default encoding system from non defined to UTF-8 (I think that would be useful). Now I have seen many different UTF-8 coding systems: mule-utf-8 mule-utf-8-dos mule-utf-8-...
26 views

### Emacs shell slow compile

So I've been searching around for this particular problem and apparently I found no solutions. There are posts on reddit about this: https://www.reddit.com/r/emacs/comments/3scsak/...
97 views

### Problem with org-mode odt exporter for styling exported src code blocks

I try to change the style of src code blocks export with odt exporter but it does not work as expected. I first exported my file to an odt document. Then I changed the style of OrgSrcBlock and saved ...
286 views

### Automatically toggling margin width on resizing

So I'm using Emacs in Windows (Emacs 24.5.1, Windows 10). I've set a default margin width of 20 on both sides for text-mode, but occasionally I like to resize the window in half (Windows+left or right ...
117 views

### tramp multi hops and known_hosts

I'm using tramp to access files in remote via Bastion server using following tramp syntax: /ssh:root@BASTION-HOST#BASTION-PORT|root@REAL-HOST#REAL-PORT: The problem is, whenever I access REAL-...
31 views

### Emacs not responding to keyboard input

Sometimes Emacs stops responding to keyboard input. It responds to mouse input though. If I do killall -s SIGUSR2 emacs, the debugger shows this (but remains unresponsive to keyboard): Debugger ...