All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

org mode sum time from remote table with org-lookup-all

I have two tables #+NAME: tasks | name | spent | |--------+--------| | task 1 | | | task 2 | | | task 3 | | | task 4 | | | task 5 | | #+NAME: works | date ...
0
votes
0answers
7 views

How can I save a function defintion

I want to extend a standard Emacs function (package--save-selected-packages), but to cover my tracks I want to save the old defintion under a new name and then redintion teh standard function. I tried ...
0
votes
0answers
8 views

Binding XF86Cut and XF86Copy to Emacs Commands

I have a keyboard with dedicated keys for XF86Cut, XF86Copy, XF86Paste. I want to bind these to Emacs commands. The goal is get the usual behavior for cut-and-paste between Emacs, my terminal, and my ...
0
votes
0answers
8 views

package refresh hangs

On Emacs 26.3, Ubuntu 20.04, when I run emacs -Q followed by (package-refresh-contents) I get Contacting host: elpa.gnu.org:443 So the package refresh just hangs. I tried to switch from https to ...
0
votes
1answer
15 views

Why unicode 🂩 (poker card) can't be properly displayed in GUI but fine in TUI?

I'm having a hard time getting unicode to properly displayed in GUI. I'm trying to type poker cards unicode inside emacs GUI, 🂩 for instance. I would like to use font "Ubuntu Mono", NOT ...
0
votes
1answer
13 views

how to go to the first definition with xref-find-definitions, do not show all options?

When I press "gd" to go to the definition of a class in C ++, emacs splits the screen and shows me two definition options that I need to click on with one of them. I'm used to coc.nvim where ...
1
vote
0answers
22 views

Why is file buffer replaced by scratch buffer on startup?

When I open an R file in ESS-mode, I'd like emacs to setup my panes in a certain format. To this end, I've added the following to my init.el. (add-hook 'ess-mode-hook (lambda() (...
0
votes
0answers
9 views

How to script a bookmark-jump call

I am trying to write a function which will perform a bookmark-jump but then reset the the bookmark line to the top of the screen. So far I have: (defun foo () (interactive) (bookmark-jump) ...
0
votes
0answers
12 views

How to retrieve specific lines of a “#+RESULTS” block through noweb references?

The context Lately, I've been writing the configurations of all the programs I use in Org Mode because of some features that improves the readibility of such files. The code block below shows a part ...
0
votes
0answers
15 views

Patching together emacs buffers and shells outside of emacs

I'd like to use emacs as a replacement for my current IDE when using R. I like to divide my workspace into three panes: Text editor R console zsh Previously, I had used tmux to achieve this by ...
0
votes
0answers
12 views

Why won't emacs permanently save my buffer-local var?

For many files I have file-local variables which asked me once if they were safe and I could add them permanently to my "trusted" list, never to be asked again. However, I get asked every ...
0
votes
0answers
8 views

How to prevent M-TAB to print “;9~”

I have defined a key-binding for M-TAB , as follows: (global-set-key (kbd "M-TAB") 'suspend-frame) This works fine but once in a while it prints ;9~. I am not sure the main cause of this. ...
1
vote
1answer
11 views

Is there a way to see a pull-request review status in magit?

I see I can view the github pull requests assigned to me with forge-list-requested-reviews. Is there a way to see the status of each review? For example I've approved some of the pull requests that ...
1
vote
0answers
17 views

Number of line as you'd get moving down the buffer with C-n

In a buffer in Emacs, a line is the text you get from the first character after you press "Enter" to the last character before the next "Enter". And so, this is the line numbers ...
1
vote
1answer
15 views

Prevent ESS from opening an R console

Say I want to create and edit a new R file using emacs/ESS. I type emacs myfile.R at my shell prompt and an empty file opens. Hurray! I start typing my code: library(da at which point I am interrupted ...
0
votes
0answers
11 views

Calendar: symbols-function-definition is void: “appt-make-list”

When in the "calendar", typing "d", which runs (diary-view-entries), gives me an error Symbols-function-definition is void: "appt-make-list". It shows the (one) entry for ...
0
votes
0answers
16 views

Rename another buffer

There are buffers that prevent you from being able to execute interactive commands (by overriding the default M-x binding). For example, *ansi-term* buffer would do this. (I know you can do C-cM-x to ...
0
votes
0answers
12 views

How to set the frame for opening pdf in org mode?

I have two links in my org buffer: [file://tmp/foo.pdf] [file://tmp/bar.pdf] Hitting enter on [file://tmp/foo.pdf] opens the pdf in the same frame (using pdf-tools / ..Running /usr/bin/xdg-open..). I ...
0
votes
0answers
6 views

Modification so 'org-match-sparse-tree' with 'org-show-context-detail' set to minimal always shows entry

I modified org-show-context-detail to minimal. Which for org-match-sparse-tree means 'show current headline, and entry below if needed' (if needed means the entry will only be shown if point is within ...
0
votes
0answers
14 views

Show org todos with certain tag in designated file

I want to implement a certain time-management system in emacs/org-mode. For each project, I intend to have one .org file which includes all associated to-dos. I already created those. Now, I would ...
0
votes
0answers
12 views

company-mode on emacs27 stoped working and returns error message with LSP

I am using emacs27 with macOS, installed with brew cask install emacs command. After updated my emacs version from 26 to 27, company-mode stop working when I edit my rust code with rust-analyzer back ...
1
vote
2answers
20 views

How to specify a directory to tangle all code blocks into

I am writing a report in latex, many of which contain code blocks which will be rendered with asymptote. Since all the scripts will be tangled into the same subdirectory asyscripts, I don't want to ...
0
votes
0answers
18 views

xref-js2 showing too many results

I'm getting mixed results with xref-js2 and want to confirm if what I'm seeing is expected or not. I'm using Emacs 27, and I have the following config: (require 'ripgrep) (require 'js2-mode) (add-to-...
0
votes
1answer
16 views

Javascript mode mixes tabs and spaces for indent

My javascript mode indents with a mix of tabs and spaces. I'm ok with the mix if spaces are used for cosmetic alignment, but this is just wrong: First level of indentation is spaces, second is tab, ...
0
votes
1answer
16 views

Show line at opening brace when cursor is after the closing brace (Perl)

Something I like in Emacs is positioning the cursor after the closing brace/paren highlights the opening brace/paren. Even better, like in Emacs-Lisp mode, the opening ( line is displayed in the ...
2
votes
1answer
41 views

How to open org files with some, but not all headings expanded?

I have an org file which looks like this: * Chores #:PROPERTIES: #:VISIBILTY: showall #:END: # STARTUP: showeverything # no + so this does nothing right now ** NEXT Brush Teeth in Day SCHEDULED: &...
0
votes
1answer
12 views

Selecting a directory like counsel-find-file

I would like to write a function that would prompt the user to select a directory, using an UI like that presented by counsel-find-file. The starting directory should be an arbitrary directory passed ...
1
vote
2answers
33 views

how to open a network folder in dired?

Unfortunately, I'm stuck on Windows. I have a network folder under this PC. Is there a way to navigate into it with dired without mounting it as another drive?
0
votes
1answer
19 views

Error replacing %n escapes with nth %^{…} string in emacs org capture

I am trying to write a custom org-capture template, but I get an error if I try to use the %\N functionality to insert the N-th prompt. The relevant excerpt of my org-capture-templates variable is (&...
1
vote
1answer
18 views

tools for camelcase and other means of word separation

Often I am involved with transforming text with one system of word separation (e.g., camelcase) into another system (e.g., hyphen separation, space separation, underscore separation. For example, if I ...
1
vote
1answer
20 views

Strange Color Issues

I've been playing around with Emacs for the first time this week, and I've been having some issues with the color scheme. This post was prompted by getting some weird when using helm. I've also ...
0
votes
1answer
11 views

Elpy can not find flake8 on Windows 10

My elpy package tells me that it can not find the command "flake8" on a Windows 10 machine. Ok, it make a bit sense to me. By default there is no flake8 on Windows 10 installed. I was not ...
1
vote
1answer
23 views

How to get the mode-specific help information or help files

No matter in which mode I am currently in, is there a general way / key combination to open the help file related to the currently active mode?
0
votes
1answer
21 views

dired by name - change directory and create new file

I want to open a new file in a different directory than the current one. Pressing C-x C-f -> I could enter a file name. But I don't. Pressing RET The directory listing (mode (dired by name)) comes ...
6
votes
1answer
238 views

How to protect myself from my own mistakes?

I use Emacs for programming and also read mail in Gnus. My problem is that I'm typing fast, switching buffers and Windows etc, and too often accidentally hit some key that is bound to some command ...
1
vote
1answer
16 views

How to set smerge-command-prefix to “\C-cv”

I find the default prefix for smerge-mode C-c^ and I have following setup: (setq smerge-command-prefix "\C-cv") (setq smerge-command-prefix "\C-c\C-v") Also C-c ^ runs the command ...
1
vote
0answers
22 views

Archiving repeated tasks

When I archive a repeated task (let's say, a learning project of 15 minutes every Wednesday day for 2 month), the task gets archived in a date tree all under the day it was closed (cancelled) as a ...
0
votes
0answers
12 views

How can I make dired display .tbz2 files

When using dired and I see a .tar.xz file I can visit this file in other window (<mouse-1>) and the file is a browsable tar archive. How do I get .tbz2 files to behave in the same way? I am ...
0
votes
1answer
24 views

Why has my .custom file changed between `(quote` syntax and the `'` syntax and how to convert between the two?

I use the same .custom file on different machines syncronised via a git repo. I just noticed that suddenly the .custom file from one machine uses the (quote syntax while in the past the ' syntax was ...
0
votes
1answer
30 views

User input - How to use predefined list

While there are org-templates creating entire bullet points with content, what I am looking for is a simple user query (similar to read-string) where the user can use a pre-defined list of words/...
0
votes
0answers
12 views

LSP does not see root directory in doom emacs

I am trying desperately to import: from src.test2 import test but it does not work, though i have a /src/test2/test.py file. I have tried so much (adding extra paths, adding pythonpath, adding init.py ...
0
votes
0answers
13 views

open multiple files in tabs from command line

Emacs-27.1 ships with a new tab-bar-mode minor mode. This puts a tab bar at the top of each Emacs frame. Each tab in the tab bar can display multiple windows. Is there any way to invoke Emacs from the ...
0
votes
0answers
18 views

A command to get buffer content centered in the window

I'm looking for the built-in command, probably a minor mode, that got my text unstuck from the left border of the window and showed more or less horizontally centered. The command doesn't modify the ...
1
vote
0answers
16 views

Turning off visual text replacement in Latex/P mode

In this mode some latex content is visually replaced with something that looks similar to the final output, like making a superscript show up as superscript in the source. It's doing this with \par, ...
0
votes
0answers
14 views

I need help for the Emacs in GUI in Macos catalina since it is opening only in terminal

I have macOS Catalina. I just installed emacs 27. version but it's only in the terminal not in a different display of its own (i think that is called GUI). Please suggest for GUI.
0
votes
0answers
21 views

TTY Emacs from within Windows 10 - garbage appears when switching windows

Due to severe limitations at work I'm forced to run TTY Emacs on a remote Unix server via SSH (launched from Git Bash console under Windows 10... don't ask...). I got my dev environment mostly in ...
2
votes
0answers
30 views

Convert orgmode to Rmd

As the title says, I have an orgmode file I have been using with ess and exporting to TeX which has been going very well. However, I need to now export to html for reasons out of my control, and was ...
1
vote
1answer
25 views

Regular expressions tool example explanation

Reading the section regular expressions in EmacsWiki appears this: You can use a tool to construct regexps. For example, you can use ‘rx’ like this: (rx (or (and "\*" (*? anything) "*/&...
0
votes
2answers
31 views

How to filter the package list by package name part or regex

Via M-x list-packages I can view a list of installable and installed packages. Great! But how can I filter this list by a portion of the package name? PS: I know about package-menu-filter, but for me ...
0
votes
1answer
20 views

Given a list of (filepath line column), how to make this open as an xref buffer?

If I have a list of file locations in elisp, how would I create an xref window, showing these locations?

15 30 50 per page
1
2 3 4 5
403