# All Questions

15,712 questions
47 views

### How do I set up all the fonts in my GUI Emacs

I have the following in my init.el: (add-to-list 'default-frame-alist '(font . "Monaco-10")) The above does the job, but Emacs uses some other fonts when displaying headlines in org ...
14 views

### How to pass noweb variables to latex blocks

I need to tangle a LaTeχ file from code blocks in an org file. How do I pass variables to the SRC block? In theory I should use :var var1=value, but is there any way to reference var1 in the LaTeχ ...
11 views

### Connecting to VMS VAX using FTP [on hold]

I have to connect to a VMS machine (legacy systems from 1960's) TELNET PORT23 at work. They are used in process control plants and are being upgraded to modern systems. We have to access these systems ...
25 views

### Ipython code only executes from org-edit-special, not from org source code block

I am trying to setup emacs on a windows 7 machine, and having trouble executing python/ipython code blocks. I am able to send these code blocks to org-edit-special (C-c '), start a python process (C-c ...
18 views

### How find org entries that are missing a certain property?

I have this long sub-tree, I want to find the entries that I haven't set a certain property on yet. * Big list ** foo :PROPERTIES: :QUUX: 1 :END: ** bar :PROPERTIES: :END: ** baz ...
28 views

### create new file helm-find-file with ffap

I have helm-find-files bound to C-x C-f. When I use it with a filename at point, and the file exists, it uses ffap to offer me that file, which is nice. But when the file does not exist, it just ...
20 views

### Magit Tramp not showing dif window

When using magit on a local file, I stage my changes and I then press c and c again to commit. I get a new window showing the diff and a window for the commit message. I write my commit message press ...
11 views

### org-src-fontify-natively breaks #'org-in-src-block-p

#+BEGIN_SRC latex we are now inside a source-code block; but, with org-src-fontify-natively set to nil, calling #'org-in-src-block-p here | doesn't evaluate to t! #+END_SRC Is this a bug? I wasn't ...
31 views

### Shortcut to put the selected region in an ordinary LaTeX environment (not with begin-end style) using auctex

In auctex if one has a selected region and then apply the command c-c c-e (LaTeX-environment) then by selecting an environment, the selected region will be folded between that environment. Is there a ...
26 views

### Evil-mode mixed tabs & spaces indentation

I'm having extreme issues at the moment with evil mode where I am working on Jade/Pug and Stylus files for Node.JS where it is white space sensitive. I installed pug-mode but when you indent via >> ...
21 views

### how to do command substitution in eshell generally (NOT just for loop)

How to do command substitution à la Bash in Eshell, and not just for loops? (Unfortunately, while this question asks my question, its answer only provides Eshell for-loop syntax. So please don't dupe ...
22 views

### Replacement for the sit-for function

Using currently the sit-for function, every time i hit any key and cause user input the sit-for will stop. Is there any possibility to have something like sit-for, while being able to move the cursor ...
51 views

### Emacs 26.2 can't load init file from Emacs 25 [closed]

The title already says the question, i had Emacs 25 and compiled Emacs 26.2. Although my ./emacs directory and everything in it exists Emacs 26.2. starts complaining about packages which do not exist, ...
32 views

### Adding a method to ‘make-instance’ fails every time I try

So, I’ve learned enough about generic functions, CLOS, and EIEIO to believe that this should work: (defclass foo () nil) (cl-defmethod make-instance ((x foo) &rest args) (with-temp-message "Is ...
26 views

### Why does setting the 'face property trigger fontification?

I'm trying to write a major mode for a programming language with JSX based syntax. Here's a minimal implementation. (defun example-forward-parse-jsx (start-pos limit) "Move point past the JSX ...
69 views

### Idiomatic way to count org-mode subtrees?

Is there an idiomatic way to count org-mode subtrees? I searched here on emacs.sx and other search engines, but I could not find an answer. I know one could easily count subtrees with a regex, but I ...
21 views

### How to convert a package to a layer in spacemacs

I am new to the world of Emacs, and like most ex-vimmers, I am starting with Spacemacs. I have been trying to find time to do some leetcode and would like to use the package leetcode-emacs. I have ...
12 views

### Sum effort estimates from today's scheduled tasks in org-mode

I want the agenda view to calculate the total amount of effort I have in tasks scheduled for today. For example, take these two tasks: * TODO Task 1 SCHEDULED: <2019-04-17 Wed> :PROPERTIES: :...
35 views

### Access Serial Port on Remote System

Is there a nifty emacs command to access the serial port on a remote system?;) I've seen socat, which creates a virtual serial port on the local system, but if emacs can do it directly, without that, ...
62 views

### Why did the proced of Emacs not show the process on my win10 system?

My Emacs version is 26.1. The system is Microsoft Windows 10. When I run M-x proced, the buffer does not list the proced used on the current system. What is this situation?
35 views

### Installing PDF-Tools Windows(non-geek tutorial)

I want to use pdf-tools to anotate pdf files using org-mode or viewing pdf outputs of my tex files which I hope it wil support syntex. I am following the official help to build for windows. I want to ...
118 views

### Shortening trees list with (setcdr (nthcdr 2 trees) nil)

I am starting to learn elisp and working through this tutorial https://www.gnu.org/software/emacs/manual/html_node/eintr/kill_002dnew-function.html and I do not understand this basic example: (setq ...
21 views

### Show current ispell dictionary in modeline

FlyCheck had dynamic modeline that shows real-time errors information: FlyC:0/21 How to have the similar ability for flyspell, to show the current dictionary used in the current buffer, the info ...
34 views

### SICP with Racket in org-mode

I'm following the suggestion here to set up racket as the default geiser/scheme. In Dr Racket I can set the first lines of code: #lang sicp (#%require sicp-pict) In order to match code presented in ...
42 views

### Naming the result of a source block

The following question has been asked (in slightly different form) in a comment of another answer: Is it possible to name the results of a source block with #+NAME: foobar (or equivalently but old-...
31 views

### No comment syntax defined

After calling org-babel-tangle on a certain file containing latex blocks, I see the prompt No comment syntax defined. Use: What is this about? This doesn't happen with another similar file I have....
17 views

### Org html export keeps presenting deleted links [closed]

reated a file "PTF.org". Within that file I have a link to a .jpg. I changed the file structure, and therefore changed the link accordingly and it works in emacs org mode as it should. However when I ...
24 views

### Indentation of description lists

org-mode automatically indents description lists, but it uses two different schemes. For short labels, the second line of the description is aligned with the first character of the description. For ...
10 views

### How to run sql-postgres without password?

My PostgreSQL authenticates using Unix Domain Sockets (Trust Authentication). When I run psql I do not need a password to connect to the database. But when I run sql-postgres, I am always asked for a ...
21 views

### Clocking into separate file

Is it possible to set up an agenda file in org-mode, so that the clocking information is saved at a different location? At work we have a team-global and version-controlled file with a section ...
124 views

### Changing the prefix of many chords

It just occurred to me that the org-babel prefix C-c C-v must be what it is because of the proximity of c and v in qwerty, and that it would be better for me to use C-c C-f. Is there a simple way to ...
47 views

### The elisp function to run the shell command in specific file path

Personally I need run many shell command in emacs, I find it is not convenient to run a shell engine (eshell) or using it separately (bash), so is there a elisp function (local provide by emacs or any ...
28 views

### Marking sexp diary entries as done in org agenda

I often use sexp diary entries for events in ORG-AGENDA. Is there a way of marking them as "DONE" in agenda-view? E.g. %%(diary-float t 2 3) Send John info for Bulletin E.g. %%(diary-block 12 15 ...
19 views

### Spacemacs - python mode

I have some problems with my spacemacs configuration. For instance, it's supposed to be globally set up with emacs editing mode and the line numbers as well dotspacemacs-editing-style 'emacs ...
82 views

### Emacs Mac OSX after upgrade to 26.2 launches only in -nw mode

I upgraded to Emacs 26.2 on my Mac OSX Sierra instance via "brew". After the upgrade, the emacs command will not open a new "GUI window", i.e. it runs as if I passed the -nw args or ran it from an ...
19 views

### Problem with the behavior of org-fontify-done-headline

I want entries with the DONE status to be greyed out, so in my init file I have (setq org-fontify-done-headline t) and I have added '(org-headline-done ((((class color) (min-colors 16) (...
18 views

### org-caldav synchronization freezes when using tags

I've finally decided to solely work in emacs, including my caldav-calendars, which I keep synchronized via my personal Nextcloud. I'm new to org-mode and trying to set things up. So far I've managed ...
40 views

### Why can't Emacs find counsel and swiper, even though they (and Ivy) seem installed, and Ivy working?

Why can't Emacs find counsel and swiper, even though they (as well as ivy) seem installed, and moreover Ivy mode is enabled, and seems to be working? This is what I get when I try the following: (...
128 views

### How remove lines which are not equal in two buffers?

Consider the following buffers buffer_1: 11111111 22222222 33333333 44444444 buffer_2: 55555555 66666666 22222222 44444444 I need to remove all lines which are not equal in buffer_1 and buffer_2. ...
56 views

### How to revert a buffer using the “g” shortcut

I can refresh my dired buffer using M-x revert-buffer and I've seen multiple places that I can do this more easily using g but don't understand how that would be run. Does it mean M-x g or running g &...
33 views

### Changing font size of a region or single characters

Is it possible in Emacs to change the font size of a single character or region, without affecting the whole Emacs window?
48 views

37 views

### end of file during parsing during org-mode export to latex

I have a weird thing going on with emacs on Fedora 29. Once in a blue moon, my Emacs will go HA! you cannot export to LaTeX with the "error": end of file during parsing during. However, if I move ...
36 views

### How to create a short name for tramp multihop path?

I connect to various locations, for example: /ssh:hostname|sudo:hostname:/ /ssh:hostname|sudo:hostname|docker:container:/ and want to have some kind of short aliases for these long paths. Something ...
24 views

### How to “manipulate” using R in Emacs

In Rstudio one can use library manipulate to interactively change the plot over some parameters(mu). When you use this in emacs ESS it gives error: function(mu){ plot(mu) } manipulate(myfunc(mu),mu = ...