All Questions

Filter by
Sorted by
Tagged with
2
votes
1answer
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 ...
1
vote
2answers
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 ...
0
votes
1answer
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 ...
2
votes
2answers
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-...
0
votes
0answers
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 ...
1
vote
1answer
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" "...
0
votes
0answers
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) #...
2
votes
1answer
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 . ...
1
vote
0answers
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 ...
0
votes
0answers
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 ...
1
vote
1answer
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.
0
votes
1answer
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 ...
0
votes
0answers
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-...
0
votes
1answer
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+...
1
vote
2answers
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))) ...
6
votes
1answer
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 ...
0
votes
0answers
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 ...
1
vote
0answers
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?
0
votes
1answer
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 ...
1
vote
0answers
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. ...
0
votes
1answer
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 ...
1
vote
1answer
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-...
10
votes
3answers
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 #+...
0
votes
3answers
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 ...
0
votes
0answers
29 views

Failed to download 'gnu' archive

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-...
0
votes
1answer
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? ...
0
votes
0answers
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. ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
1answer
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.
1
vote
1answer
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-...
2
votes
1answer
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).
0
votes
2answers
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 "~/...
1
vote
2answers
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-...
0
votes
3answers
260 views

Emacs not loading org-agenda-files on startup

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 ...
1
vote
0answers
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 ...
0
votes
0answers
16 views

Use ssh-agent's SSH_AUTH_SOCK value, not macOS' one

When I run (getenv "SSH_AUTH_SOCK"), I get "/private/tmp/com.apple.launchd.K9OEFgxDgw/Listeners". I want to set it to the value that is returned by echo $SSH_AUTH_SOCK on the command line which is ...
0
votes
1answer
5 views

Spacemacs Clojure Cider Debugger Gives Error, “No reader function for tag dbg”

After connecting Cider to Spacemacs, when trying to set a debug breakpoint on a function using ,-d-b (cider-debug-defun-at-point), I see the following message in the *cider-error* buffer. 3. ...
2
votes
2answers
50 views

How to show all functions in a javascript file?

How to show all functions in a js file? I am using js2, but any solution will do. Additional info: I am expecting an occur style buffer. This can persist and be edited if necessary. Or searched. This ...
1
vote
1answer
29 views

Regex: Don't Match Text Between Curly Braces (LaTeX Commands)

I've been using pandoc and emacs to convert beamer presentations to markdown format. In the beamer presentations we highlighted certain code in example code blocks red. Pandoc has left me to get rid ...
0
votes
1answer
27 views

Undo code evaluation

Can the evaluation of code snippets be undone in emacs? Or do I have to restart without having the code sitting in init.el to bring the system back to its previous state? I tried out this code with ...
0
votes
0answers
13 views

Org-capture template with deadline of one month from today

As it seems, org-mode capture templates mechanism maybe have changed? I'm using: Org mode version 9.2.4 (9.2.4-10-g3b006f-elpaplus) What I'm trying to do is to have a capture template that will ...
0
votes
0answers
6 views

Changing the tangling destination

If you call #'org-babel-tangle in a source block beginning with #+begin_src tex :tangle irs.tex The tangled file will normally end up in the current directory, which will be the directory containing ...
0
votes
1answer
32 views

How can you configure magit for duet-commit?

The following code used to work with earlier versions of emacs, adding a ‘d’ option to magit's commit popup for ‘git duet’. (require 'dash) (defvar magit-duet--default-commit-popup-actions nil "...
0
votes
0answers
28 views

Is there a way to start org-mode agenda with a custom search?

I would like to start an org-mode agenda with a custom tag search (rather than starting the agenda and then doing the search). The overall goal is to make a work and a personal agenda. I can make ...
66
votes
10answers
8k views

How do I prevent extremely long lines making Emacs slow?

I see hugely varied performance depending on how many newlines there are in the file I'm visiting. Here's an example. I have two JSON files: $ wget https://github.com/Wilfred/ReVo-utilities/blob/...
1
vote
1answer
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 ...
0
votes
0answers
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 ...
0
votes
0answers
12 views

starting emacs from the commandline and setting line wrap to 60 - howto? [duplicate]

I'm new with emacs and come from joe. There I started editing mail with the option "rmargin" which set the right margin for my mail at column 60. I can't find a similar option in emacs? Is there ...
1
vote
1answer
51 views

How can I get flush left text in org-indent-mode?

I open an org file in emacs and it displays thus: I enable word wrap with M-x visual-line-mode and get: But I prefer the extra indenting of headlines provided by org indent mode, so then do M-x org-...

15 30 50 per page