All Questions

0
votes
0answers
5 views

use-package arguments without use-package

The guide I'm following for lsp-emacs wants me to set these options: ;; Enable scala-mode and sbt-mode (use-package scala-mode :mode "\\.s\\(cala\\|bt\\)$") (use-package sbt-mode :commands sbt-...
0
votes
1answer
6 views

Is it normal for a package to request [sudo] in order to install a package? (this case pdf-tools) concerned about password integrity

I installed pdf-tools through MELPA, and then labels it as installed on a restart but kept viewing pdfs through doc-view. So using M-x pdf-tools-install it requested the sudo password in order to ...
1
vote
0answers
18 views

Show Apple Calendar events in org-mode

Is there a way to show Apple Calendars in org-mode? All I need is to be able to see them in org-mode, I am not (currently) interested in syncing or anything like that. Ideally, the Apple Calendars ...
1
vote
3answers
114 views

Is updating Emacs and installing Emacs the same thing?

I installed Emacs 26.1 from dnf package manager on Fedora 29. I would like to install the latest stable Emacs, which is version 26.2. Emacs 26.2 will be on Fedora 31 in 6 months. Is updating Emacs ...
0
votes
1answer
20 views

Treat symbolic-link as separate files while visiting

Is there a way to make Emacs visit already visited file(with active buffer) via symbolic-link as a different file? I want them(links/file paths) to be visited by different buffers. It will be best if ...
0
votes
2answers
22 views

How to stop autorevert polling

To quote, By default, Auto-Revert mode works using file notifications, whereby changes in the filesystem are reported to Emacs by the OS. You can disable use of file notifications by ...
0
votes
0answers
6 views

org-babel-tangle gives error function definition is void

Using the MWE example.org below, M-x org-babel-tangle returns: helm-M-x: Symbol’s function definition is void: mu4e-message-at-point $ cat /home/example.org #+begin_src sh :tangle example.sh ls #+...
0
votes
0answers
18 views

Move cursor to opened file in sr-speedbar

i wonder how i can configure the sr-speedbar mode to automatically move the cursor to a file, which i open by pressing enter in the sr-speedbar. Thanks for your input.
2
votes
2answers
154 views

Change doc string summary of a function on the fly

Is it possible to change the first line of a docstring of a function, without editing the source code of this function? And if, how can I do this? Background: some packages come with a pretty useless ...
0
votes
0answers
6 views

delete-trailing-whitespace on save while always preserving location of cursor

I have the following before save hook defined which deletes all trailing whitespace and converts tabs to spaces (except in makefile mode since makefiles need tabs to work). This works great, however, ...
0
votes
1answer
20 views

How to disable commented date in org mode html export

When you export an org file to html, a date will appear in the html source though commented. Example, line 5 of https://imgur.com/a/BY4QSdt .
0
votes
0answers
11 views

org-mac-iCal not working

I am trying to setup org-mac-iCal See https://orgmode.org/worg/org-contrib/org-mac-iCal.html. Nothing happens when Emacs loads. Even when I run the specific function org-mac-iCal, nothing happens ...
0
votes
0answers
12 views

Can org-publish-project-alist follow symlinks?

I use org-publish-project-alist to maintain my personal webpage. On my local machine, I have dozens of git-repos where I develop files I want to share on my webpage. Currently, I'm using hardlinks to ...
0
votes
0answers
11 views

How to color flycheck's mode line text

I have this, but it doesn't color anything: https://github.com/skrat/dots/blob/master/emacs/.emacs#L177 https://github.com/skrat/dots/blob/master/emacs/.emacs#L357-L362
0
votes
1answer
25 views

How connect to remote machine by private key on Tramp mode?

From my machine Windows 10, I connect to remote Linux machine by private like this (in console) ssh -i d:\Remote\key\privatekey myLogin@some_remote_host success connect: Welcome to Ubuntu 16.04.4 ...
0
votes
0answers
18 views

Magit blame only last commit (or range of commits)

Can I have magit-blame somehow only show the changes introduced with the last commit? EDIT: what have I attempted? I've looked at the docs of magit-blame and explored all flags in the magit-blame ...
2
votes
1answer
31 views

Is possible to have alternate table rows in another color in org-mode tables?

I would want something like this, for some specific tables with many rows (so columns are easier to read): I know about stripes mode (and sometimes I resort to using it), but that changes format for ...
0
votes
1answer
13 views

What does it mean in ebib when a field of an entry is preceeded with an asterisk '*'?

When viewing entries in a database in ebib, some fields of some entries are marked with an asterisk (*). In my case, these are usually year or month field. I don't see a rhyme or reason to the types ...
0
votes
0answers
13 views

Opening output file: Permission denied, c:/Windows/System32/drivers/etc/hosts [on hold]

Emacs 26.1, Windows 10 Open file c:/Windows/System32/drivers/etc/hosts But when I try to save I get error: Opening output file: Permission denied, c:/Windows/System32/drivers/etc/hosts
0
votes
1answer
35 views

How to select a rotating Hydra option?

From SPC f f (counsel-find-file) minibuffer, open Hydra with C-o (hydra-ivy/body). This is what hydra looks on my system: The Hydra right column has "[m] matcher: order". Pressing 'm' rotates matcher ...
0
votes
0answers
17 views

Configure compilation mode to use custom shell

On windows I have set (setq explicit-shell-file-name "c:/Program Files/Git/bin/bash.exe") to use git-bash for e.g. M-x shell. In compilation mode however, the standard windows console still seems to ...
0
votes
1answer
14 views

Characters replaced with angled bracket sequence, possibly due to encoding

I have files in Markdown, saved in a Dropbox folder. One of them replaces characters with angled bracket sequences. For example a git diff no-index between the saved file and a copy-paste of the text ...
1
vote
1answer
33 views

How to unlist an org-mode plain list?

Q: how do I unlist an org-mode plain list? I have a plain list that looks like: * header - List item 1. - List item 2. - List item 3. I want to remove the plain list formatting and convert ...
0
votes
1answer
41 views

How to define a custom function that runs a command twice?

In dired mode, 'm trying to make a function that runs dired-next-line twice and then bind to SPC so that I navigate files faster in dired mode. I tried to add this in my dired.el file but it didn't ...
1
vote
1answer
11 views

Passing variable into a org babel code on export

I can't seem to get the variable to expand into src block #+BEGIN_SRC conf :tangle ~/.config/mine.conf :var argument=abcde setting1 1234 setting2 argument #+END_SRC When I export the file for ...
1
vote
1answer
17 views

What do the spaces in the NEWENTRY parameter to modify-syntax-entry mean?

I am looking to set up a syntax table for a major mode, and many of the examples, such as lisp-mode-syntax-table have entries like the following: (modify-syntax-entry ?\[ "_ " table) My question ...
0
votes
1answer
30 views

Org-mode export to PDF not highlighting code blocks

I am trying to use org-mode export through LaTex to get a nice PDF of my documents, but I can't get it to show highlighted code blocks through Pygments. The following is a snapshot of my configuration....
0
votes
0answers
8 views

Can't load spacemacs - it's trying to delete pspp-mode

I am a vim user who only uses emacs for my org-mode todo file, so I really don't know what I'm doing. After updating Ubuntu to 19.04 (and thereby updating emacs to 26.x), I'm getting an error when I ...
1
vote
0answers
20 views

`ivy-read`: How to run action on every selection change?

I have been trying to implement a function with ivy that needs to run a particular function not only on selection but also on every selection change in the list. To be specific, when the user scrolls ...
0
votes
0answers
15 views

Creating aliases for key sequences

I found that I can, in evil normal-state, use <leader> c as an abbreviation for (or rather alternative to) C-c: (evil-leader/set-key "c" (lambda () (interactive) (setq unread-command-...
1
vote
1answer
15 views

Issue archiving when maintaining org-mode subtree structure

I'm trying to archive DONE org-mode tasks while maintaining the subtree structure. There's a partial solution for what I'm trying to attempt at https://gist.github.com/edgimar/...
0
votes
0answers
42 views

Proper use of use-package

I am using the following init file to download and load packages from melpa-stable in fresh Emacs installations: (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable....
1
vote
1answer
34 views

M-P: M-p is undefined

I noticed something odd. If I press M-P I get the message M-p is undefined rather than M-P etc.. Is there a reason for this? Version 26.2. Using Arch Linux and the X window system.
0
votes
1answer
20 views

After change from Ubuntu to Lubuntu the mouse wheel (scroll) doesn't work without pressing CTRL together

When I try to scroll with mouse I receive a message saying Wrong type argument: commandp, mouse-5 or Wrong type argument: commandp, mouse-4. This happens after I tried a lot of random fixes. Before ...
0
votes
0answers
30 views

How to automatically run a command when cursor is at bottom of visible frame?

The recenter command in emacs is recenter-top-bottom which I can invoke using Ctrl-l. How can I call this command automatically every time the cursor is on the fifth-last line in the visible frame? [...
0
votes
0answers
9 views

Need help with `expand-region`: Symbol’s function definition is void: org-outline-overlay-data

If I try to use er/expand-region but it fails with Symbol’s function definition is void: org-outline-overlay-data. org-version : Org mode version 9.2.2 In the release notes for the current org (9.2),...
0
votes
0answers
13 views

Highlight headings in orgstruct-mode

When I do M-x orgstruct-mode (in, e.g. shell script mode, after setting orgstruct-heading-prefix-regexp to "#") and make some comments serve as headings, these comments look like all other comments. ...
0
votes
1answer
13 views

Why is text yanked automatically when visually selected in evil? [on hold]

I recently did some changes to my .spacemacs file. I'm not sure if it's related, it's hard to pinpoint when exactly it started to occur. And for some reason, anytime I visually select text now with v ...
0
votes
0answers
19 views

'Meta-Shift' stopped working after update [on hold]

in general, shift and meta no longer work together, so if I press M-S-. or M->, Emacs recognizes it as M-. This behaviour seems due to an upgrade of Gnome 3 Desktop, or upgrade to Emacs 27.0.50.
0
votes
1answer
35 views

How to set up personal information alist with defcustom

I would like to have a variable, say my-info that would have an alist attached to it. In normal programming it would look like this: (setq my-info '((my-name . "Giuseppe Sextus-Packus") (my-email . "...
1
vote
1answer
55 views

Org-mode 9.2:Can' t find the error on my dot emacs [on hold]

I recently update my org to the version 9.2 (to be precise: Org mode version 9.2.3 (9.2.3-4-g6ec402-elpaplus @ /home/nanounanue/.emacs.d/elpa/org-plus-contrib-20190408/) I did it because I replaced ...
0
votes
1answer
31 views

How to make `ESC` key act like a real Meta modifier key?

I would like to make the ESC key act like a Meta (modifier) key. For example, when I move backward by words by (M-b), I want to keep my pinky finger on ESC, not press it once for each backward move. ...
1
vote
1answer
21 views

Is it possible to group series of changes under single undo step?

I am writing template insert function for a file format that needs to keep header counter updated. I'd like that undo operation removes not only in place template changes but also corresponding ...
1
vote
2answers
38 views

How can I get the list of recentf files from bash / cli?

How can I retrieve the list of recent files in bash? I'd like to get this set of files so I can use it with rofi. I could manually parse the data file that looks something like: ;;; Automatically ...
1
vote
1answer
28 views

How show hidden and system folder/files?

Emacs 26.1. , Dired+ Here content folder TraderMonitor in Total Commander: and here how look same folder (TraderMonitor) in Emacs, dired mode: How show hidden/system folders: .git .idea and file: ...
0
votes
1answer
21 views

Check if a character is in a string

It is easy to present list of allowed characters as string, like " \n\t". (char-before) return integer. How can I check that a character is in a string? There is What is the easiest way to check if ...
0
votes
1answer
9 views

How can I get superscripts at the beginning of a line in org-mode?

I'm writing a document (in org-mode) that quotes another document, including its footnotes. As such, I'd like to have a line like: #+BEGIN_QUOTE ^123 The contents of footnote 123 go here. #+...
0
votes
1answer
22 views

Is there regex match at point?

I want to match a certain string (not even a regex!) at point. re-search-forward skips characters after the point. With char-after it is possible to build a framework for matching a string at point. ...
0
votes
0answers
10 views

remove duplicate word one by one [duplicate]

I'm looking for ways to detect duplicate, not case-sensitive words in a text/latex document. Google turns up this elisp-macro https://www.gnu.org/software/emacs/manual/html_node/eintr/the_002dthe....
0
votes
1answer
30 views

Line numbering: stick with linum or nlinum? [closed]

I see that both linum and nlinum are actively maintained: one is built-in, another recently had a release. With older Emacs version, linum used to be slow with a lot of folding in a buffer (e.g. in ...

15 30 50 per page