All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

Coloured active mode line only when many windows

I am reluctantly using a coloured active mode line to distinguish it from inactive mode lines, but it occurred to me that it might be possible to reserve its colouring for times when there are more ...
0
votes
0answers
5 views

Correct alphabetizing/sorting order with string-collate-lessp?

Q: how can I get string-collate-lessp to sort correctly? string-collate-lessp is supposed to sort two strings in collation order: Return t if first arg string is less than second in collation ...
0
votes
1answer
20 views

browse-url-at-point opens link text

I have a link in my org file such as [[https://google.com][mylink]]. When I put the point over "mylink" and run M-x browse-url-at-point my browser opens "http://mylink.com". Is there a different ...
0
votes
1answer
16 views

Display file icons in ranger inside spacemacs

I am looking to get visual representation of different file extensions as discussed in this question. https://github.com/ranger/ranger/issues/298 In the question however there are some python ...
0
votes
0answers
25 views

Emacs is extremly slow on battery, normal on power

I have a weird problem where my emacs setup is extremely slow (as in takes a long time to show typed characters) when my laptop is running on battery. Once I connect it to power, the speed is normal. ...
0
votes
1answer
30 views

Elpy, autopep8 and line length

I'm struggling to get line length correctly setup under Elpy. I found How to customize the line character length in elpy? and have in the past found flycheck cannot find module for pylint. My ...
0
votes
0answers
41 views

How to auto-format an Elisp file on save?

Having used clang-format to format the buffer when saving, I find this functionality useful. Are there tools to reformat an Elisp buffer when saving?
0
votes
0answers
30 views

How to make ibuffer open the selected buffer in the most recently selected window?

I use ibuffer-sidebar-mode and when you are on a file buffer name in it and hit enter, I am not sure how it decides where to open that buffer if the rest of the window is split in multiple buffers. I ...
2
votes
1answer
22 views

org-table to calc matrix and back again?

Is it possible to feed data from an org table into calc as a matrix, and then get it out again as a vector to fill in a column? For example, if I have: | | Fund A | Fund B | Fund C | ...
0
votes
1answer
40 views

Spacemacs helm-org layer is missing

Good day, I wanted to use the helm-org-in-buffer-headings function. Yet for some reason helm-org layer is missing. If I install it manually via package list packages it gets deleted with the next ...
0
votes
0answers
11 views

org-mode keybinding to insert heading followed by org-do-promote

I can write a short keybinding to do this but does org mode have a good way to the following: org-insert-heading-respect-content or org-insert-todo-heading-respect-content followed by: org-do-...
0
votes
2answers
44 views

Move cursor to Start of document/End of document on OSX

On Linux, I am able to move the cursor to start of buffer/end of buffer using using C-Home/C-End respectively: C-End Move cursor to the end of the buffer. Note the key is 'End' key on the ...
2
votes
1answer
53 views

org-capture: prompt for a target file

Starting from the existing customization associated with key j, is there a way to view and modify the target file? In other words, by default, captured notes would go to */journal/inbox.org, ...
0
votes
0answers
15 views

ESLint rule not applying

Below is my .eslintrc.json and I see the same option when I do eslint --print-config app.js But emacs adding semicolon on save even though I have "semi": 0 { "parserOptions": { "ecmaVersion": ...
0
votes
0answers
22 views

Install package issue - says disabled, doesn't auto-install dependencies

am relatively new user of emacs - and having a recurring problem that I'm sure has an easy solution, but I can't figure it out at all. Issue is: I use M-x package-install to install say org-ref. ...
2
votes
1answer
29 views

Getting information about src block in ```org-src-mode```

I need to configure the behavior of elpy when editing a python src block in org-src-mode. Usually such configuration code should be added to org-src-mode-hook. In my code I need to check some header ...
0
votes
0answers
28 views

How to create edge labels in org-mind-map?

The examples do not show use of this feature. And it is not clear from the documentation how to create edge labels. The following is a simple graph drawn using Graphviz, where labelling edges is ...
0
votes
2answers
42 views

How to prevent stuff from being exported

I want some stuff to be visible in the editor, but not in the export (C-c C-e). Some stuff includes headlines. I tried this: #+EXPORT_FILE_NAME: ~/Documents/Outbox/hide #+OPTIONS: ^:nil #+STARTUP: ...
1
vote
0answers
15 views

LaTeX fragment preview includes font name in Org-mode

Since I have to export some CJK characters in LaTeX, I have the following two lines in an .org file : #+LATEX_HEADER: \usepackage[BoldFont,SlantFont]{xeCJK} #+LATEX_HEADER: \setCJKmainfont{HanaMinA} ...
0
votes
0answers
18 views

Error during installation of Magit: "el-get: make el-get could not build transient [make EMACSBIN=c:/Users/…/emacs-26.1-x86_64/bin/emacs info]

In this folder ~/.emacs.d/el-get/transient (master) there are following files for transient ./ ../ .git/ .github/ .gitignore default.mk docs/ LICENSE lisp/ Makefile README.md then run runemacs --...
0
votes
1answer
36 views

Is there a way to write and kill a buffer in a single command in Spacemacs / Evil?

I am new to (Spac)Emacs with Evil, and I did quite some searching to find an answer to this question, so I hope this is a 'legitimate' question here. Is there a default single command to write a ...
2
votes
1answer
62 views

What happened to org-habits from 8.2 to 9.1?

Orgmode's org-habits appear broken following the upgrade of emacs from version 25 to 26 and orgmode from 8.2 to 9.1 along the way. Specifically, all of my habits don't show as habits in the org-...
0
votes
0answers
19 views

No filename completion with Eglot and R

Using ESS with emacs I have automatic filename completion. So, when I am withing "./" and hit TAB, it shows me a list of files and directories within that directory. However, after installing eglot ...
0
votes
1answer
12 views

How to generate and display tags in treemacs (for JavaScript)?

I'd like to generate a set of tags and then view them in Treemacs, ideally whenever I open a file that I can generate tags for. The docs for Treemacs' tag view say: Treemacs is able to display ...
2
votes
0answers
24 views

Browse line range of file in GitHub with Magit

Is it possible to select a range of code and open it in GitHub using Magit? I use the browse-at-remote package for this, but I wonder if this could be done from Magit. I'd like to navigate both from ...
1
vote
1answer
30 views

fetching elisp library from url

I am using use-package in my .emacs and it is great. However occasionally I want to use a 3-rd party code which is not in [M]ELPA. Of course, I can download it but then I will need to maintain a copy ...
0
votes
0answers
5 views

IDO find file stay in TRAMP

When going to M-x ido-find-file then going to sudo /sudo::/ I can browse files as root but if I enter // or ~ it escapes TRAMP. How do I prevent it?
2
votes
2answers
18 views

Slurp standard-input into a buffer

How do I read the entire contents of stdin into an Emacs buffer in #! /usr/bin/env emacs --script mode? Stdin may not be a regular file.
0
votes
1answer
64 views

Unexpected behavior when updating alist

Question: The code is below, the contents of the list myList were copied in the debugger. (let* ((myList '(("Concept Index" ("Файл" "/home/alamd/example/funEl/expirement/...
3
votes
2answers
76 views

How to transpose words, keeping the cursor at the same relative location to the word it moves?

When transposing words, the cursor moves to the end of the word, how can the cursor be kept at the same location relative to the word?
0
votes
0answers
8 views

Customize indent of line-continuation in f90-mode?

In f90-mode, is it possible to make continuation lines indent to the opening parenthesis instead of by a fixed amount of columns, without having to rewrite f90-indent-line? For conformance with a ...
0
votes
1answer
33 views

Setting the time for messages in the minibuffer

Messages that appear in the minibuffer disappear too quickly for me to read them. I would like them to last a few more seconds before disappearing. (I know I can press C-h e to see them again.) I ...
1
vote
1answer
38 views

Unstaged changes not appearing in magit, plus other oddities

I'm a Magit rookie and finding it is not behaving as expected. I have multiple unstaged changes in a repository (see "Git Status" below). However, Magit is not showing them (see "Magit" below) when I ...
0
votes
1answer
30 views

Getting Emacs lsp-mode to work with this matlab-langserver

I am trying to get this Matlab language server to work with lsp-mode. Following the instructions in lsp-mode's github page, I inserted the following in my init.el: (use-package lsp-mode :ensure t ...
1
vote
1answer
43 views

How to drill back up a folder in Dired?

In Dired, I'm able to drill down folders with the key i, but how can I unfold a folder that was once opened, that is, go to its parent folder?
0
votes
1answer
20 views

Filter org mode weekly schedule by tag

I have multiple scheduled tasks/events in different files properly labeled and I can't find a way to have the weekly schedule agenda view to filter by these labels. It just shows all the labels per ...
0
votes
1answer
28 views

How to transpose words backwards?

Transpose words (M-t) always swaps the word with the next. How can this be performed with the previous word?
2
votes
1answer
88 views

org column view with date calculations

* TODO fix this bug asap :PROPERTIES: :UPDATE: writing test cases almost there! :LASTUPDATED: 2019-11-25 :DEADLINE: 2019-11-30 :END: * TODO update that documentation :PROPERTIES: :UPDATE: updating my ...
4
votes
2answers
97 views

How to report that an interactive command couldn't run?

When writing my own interactive function, whats the best way to report that nothing happened. (if line-is-empty (message "Found empty line, nothing to do!") (do-stuff)) Or is it better to use ...
3
votes
2answers
39 views

A custom type specification like “repeat,” but when there’s only one item, it’s inline

So, I’m trying to add Customize support to packages that use a lot of plists, and where the value of pretty much any option can be either a single item or a list. I could have every single plist ...
1
vote
1answer
24 views

cannot have a different default for font's height with emacs daemon

Following an article called Emacs, fonts and fontsets I was revising my font setup. I ended with the following code: (defun font-exists-p (font) "Comprueba si una tipografía existe. Sacado de https:...
0
votes
0answers
61 views

interactively load Cabal packages within haskell-mode

I really like how I can interactively load packages and experiment at will in Common Lisp, and would like to get a similar workflow in Haskell. I've settled on Cabal (v3.0.0.0 - new command set by ...
0
votes
0answers
19 views

Org Mode Key Bindings In Terminal Not Working [duplicate]

I'm new to using Emacs in Ubuntu server terminal as opposed to GUI and noticed some of the standard org mode key binding (like M-DOWN or M-UP to move list items or subtrees up or down) don't work. Is ...
1
vote
1answer
32 views

Why is `key-chord-mode` not listed among enabled minor modes?

After starting Emacs with the following init.el file, key-chord-mode is turned on. ;; Speed up startup (setq gc-cons-threshold 402653184 gc-cons-percentage 0.6) (add-hook 'after-init-hook ...
0
votes
0answers
26 views

Files not being ignored

Apologies if this has been asked elsewhere; I'm very new to emacs so I'm unaware of many of the basics. I've been trying to use helm-projectile to switch between projects and go to files. I'd like ...
0
votes
0answers
50 views

syntax highlighting in ranger

I've been playing around with ranger in emacs and I'm really liking it for browsing new codebases. I would like to get syntax highlighting working, as it does when using ranger in a terminal. I'm not ...
0
votes
0answers
29 views

How to create a file when it doens't exist in the project?

I've remapped C-x C-f to projectile-find-file since I mostly open files corresponding to the project I'm in. However when I need to create a new file, I fill in the name and projectile doens't find ...
1
vote
1answer
58 views

How does emacs write files?

When Emacs saves a file (save-buffer, write-file etc.), does it overwrite files directly or does it create a temporary file first? More specifically, if I edit /path-to/file.txt, will Emacs directly ...
0
votes
1answer
41 views

Problem with `org-startup-indented`

When I set org-startup-indented to be t, I see the following error on opening any .org file and the error refused to go away i.e. it reappears instantly after pressing q. Debugger entered--Lisp error:...
0
votes
0answers
16 views

Additions to org-agenda files not persisting across launches

My init file contains the following (custom-set-variables '(org-directory "~/Dropbox/org") '(org-agenda-files (list (concat org-directory "/mylife.org") (concat org-directory "/inbox.org")))) ...

15 30 50 per page