# All Questions

16,417 questions
Filter by
Sorted by
Tagged with
45 views

### How to perform interactive auto-scroll?

Is it possible to activate a blocking 'scroll' mode that uses the vertical position of the cursor and a timer? This is handy because you can move the cursor to a certain Y-delta to maintain a fixed ...
22 views

### Copy all dirs exclude all subdirs with name “build”

emacs 26.1 dired+ I have dir my_dir. This dir contains 10 subdirs. In every of those dirs there are 2 subdirs: src build I need to copy in DIRED MODE all dirs and files from my_dir to my_dir2 and ...
26 views

### Possible to smooth scroll using pixel and line offsets?

I'm running into an odd problem scrolling by pixels, it seems calling scroll-up doesn't properly handle pixel scrolling (set-window-vscroll). This is a simple test that attempts to scroll up by ...
48 views

### How to scroll immediately by a pixel offset?

I was looking for a replacement to scroll-up / scroll-down that operates in pixel units. pixel-scroll-mode animates the scroll, I didn't see any functions that apply an offset directly. set-window-...
3 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 ...
11 views

### Local variable's state mutated across function calls [duplicate]

I was surprised to discover that a local variable can have it's state modified across function invocations. Consider the following example. (defun example-mutable () (let ((x '("the" "quick" "...
24 views
+50

### org-babel-tangle with function in header arguments

Following this suggestion, I have a function to automatically generate figure names: #+begin_src emacs-lisp :exports none (set (make-local-variable 'i) 0) (fset (make-local-variable 'fig-file) #...
56 views

### can I use .dir-locals.el to set a default mode for files, and still allow dired?

I have a directory that is all little shell code snippets for being sourced. Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly: ((nil . ...
10 views

### mu4e query search for emails larger than certain size

I've looked in all the examples given in queries of mu4e email but couldn't find an option that returns all emails larger than a certain size (for example 10MB). I think this is relevant if one is ...
10 views

### How to set up Emacs Tide to use auto-complete for completion instead of company-mode?

I installed Tide in Emacs, and found it is pretty useful for writing JavaScript code. But one thing is that Tide has built-in support for company-mode to do completions. Since I am an auto-complete ...
34 views

### How to calculate a point N lines from another point in elisp?

Given a point, how can I get the point N lines before/after it? Will post own answer, but I'm not sure it's optimal.
380 views

### Gui won't start, throws an “Args out of range: 0, 100”

The only response I got is this: Weird behavior: GUI won't start, but terminal emacs will But he doesn't clarify on the solution. I have the same problem, my .Xdefaults and/or .Xresources causes ...
18 views

### Enable spell check with american dictionary for all buffers

I have an init file that loads two files: one from customization done from within emacs and other from my custom settings file - better-defaults.el. I have tried various options like ispell-local-...
22 views

### org-capture fails: base buffer has been killed

I am trying to set up GTD for org-mode by Nicolas Petton. I have a very simple org-capture-template: (setq org-capture-templates '(("t" "Todo [inbox]" entry (file+...
29 views

### How to prevent scroll up doing nothing when the value is too big?

When calling (scroll-up N) with a large value that would exceed the buffer length - nothing happens. For example: (global-set-key (kbd "<f4>") (lambda () (interactive) (scroll-up 10000))) ...
599 views

### Styling lists in org-export (html)

So, for variety's sake I'd like lists and sublists to have different styles. In emacs, I've enabled org-list-allow-alphabetical, but this doesn't work with export (not a bug). However, there doesn't ...
5 views

### How to disable TIDE when using Indium scratch buffer

I'm learning Javascript and my setup is Indium + Tide, The setup works well and I can follow all the exercises in the book. But when I try to use the Indium scratch buffer M-x indium-scratch It opens ...
17 views

### How to detect the modifier key state with track-mouse?

When using track-mouse pressing modifier keys doesn't generate events. Is there a way to detect if any modifier keys are held while tracking the mouse?
16 views

### how to test which org mode publish backend is in course in a export filter?

Why is my org mode publish derived backend not reconized in the code snipped below? (if (org-export-derived-backend-p backend 'jekyllHtmlPost) This is my complete init.el ;;; package --- Summary ...
20 views

### How to tell Ivy to use completing-read-default for specific command? (org-tags-view, in particular)

Ivy (+swiper +counsel) is very cool and I use it constantly for an ever growing number of tasks. But there are some cases in which the requirements of a certain completion task defeats Ivy's logic. ...
23 views

### Exclude the habits from the global todo list

I set habits ** TODO Wake Up Early In the Morning SCHEDULED: <2019-07-17 Wed 05:00 ++1d -0d> :PROPERTIES: :STYLE: habit :LAST_REPEAT: <2019-07-15 Mon 04:30> they display on agenda ...
59 views

### Revert buffer with coding system

Chances are that every time utf-coding should be activated by invoking 'M-x revert-coding-system` , even though a long list of utf-prefer configuration: (prefer-coding-system 'utf-8) (set-...
936 views

### Org-mode: pipe source block output as stdin to next source block

I try to pipe the output of one source block to the next source block as standard input. Here an example of what I have so far: Create stdin data: #+header: :exports code #+header: :results output #+...
28 views

### Automaticaly insert '~' Symbol before and after a “Marked Expression”

I am documenting Code a lot. For exporting purposes I often have to add a '~' infront and after an Expression. For Example "Adc_Cfg.c" needs to get "~Adc_Cfg.c~". That way the Export to PDF via latex ...
29 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-...
32 views

### matlab-shell, changed files' location (changed files' directory)

I've been used mablab-mode & shell in GNU emacs, and changed some of files' location, then these warnings came out every time. There's no sort of setting location. Does anyone know this problem? ...
27 views

### Emacs slow when launching GUI

I have a weird problem. When I launch emacs GUI by double clicking the icon, or using open -a emacs in the terminal, or calling the application from alfred/spotlight it takes 4-8 seconds to launch. ...
7 views

### spacemacs: show yasnippets at top of completion popup list

yasnippet can be integrated into auto-compltion in spacemacs. I want to show snippets at the top of the auto-completions list. Default is at bottom. foo_______________ |foo -> foo snippet| |foo ...
15 views

### irony-mode producing too many errors

I am trying to use irony-mode with my project. I have installed the irony server using irony-install-server. I also have a CMakeLists.txt to produce the makefile for my project along the compile ...
38 views

### Replace text with latex

I wondered if it is possible to make emacs replace occurences of a/b with ${a \over b}$ , where a and b are integers or letters in the text.
19 views

### Running Emacs server from snap installation

I've installed Emacs 26.2 using snap on Lubuntu 18.04. I'm trying to figure out how to get the server/client/daemon going. I've done as instructed on EmacsWiki: "Emacs Client" by putting (server-...
40 views

### Is there a package manager for emacs that can use git repositories directly?

Is there a way to manage packages in emacs where I can point to a git repository directly? (like vim-plug for eg).
31 views

### Save buffer immediately after org-archive-location

Question How do I immediately save the .org buffer created by org-archive-location? Context and what I've tried so far Current .emacs settings: FILE: .emacs (setq org-archive-location (concat "~/...
81 views

### execute result block as shell commands

I would like to build a shell command using elisp and then printing the result so it is stored in a #+RESULTS block and from there execute that result block as a shell command still inside the org-...
260 views

So i've put this in my emacs.org: (setq org-agenda-files (list "~/todo.org")) But whenever i close and reopen Emacs, my org-agenda is empty until i reload my config-File. Is there anything ...
25 views
+50

### Selecting a file via helm using multiple sources

I have a customized find-file that uses helm sources to help load a file into my buffer. Now, however, I would like to be able to select a file using the same algorithm and store that filename into a ...
16 views

16 views

### Mark isearch results

I'd like to mark regex isearch results so that they can be copied or cut (killed) via M-w and C-w. Is there a ready-made function for this? The solution below provided by @danielpoe over here copies ...
54 views

### Spacemacs keeps installing and uninstalling auctex-latexmk

Running spacemacs 0.200.13. Everytime I start spacemacs, it either installs auctex-latexmk or deletes it saying that it is an orphan package. Here is some more information: I have latex layer ...