All Questions

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

yas-new-snippet always duplicates the selected input. What might be causing it?

I've experienced this issue for some time. It's not a blocker but it is a bit annoying. Steps to reproduce: Select a region that you want to extract into YASnippet snippet("foo bar"). Eval ...
0
votes
0answers
7 views

How to make make imenu behaviour like swiper?

How can I make imenu (with ivy wrapper) act like swiper, that mean auto switch to location when I use arrow key( or ivy-previous/next-line function) and if I exit it will come back to current location?...
0
votes
1answer
16 views

How to write a basic org-babel-execute function for a new language?

What I'm trying to achieve is very simple: take a source block, write it to a temp file, pass the file name as an argument to an executable which will run it, and then include the output in the #...
0
votes
0answers
32 views

How can I get holding down the spacebar to work as expected

When I am editing text, if I press and release the spacebar it works as expected. However, if I hold down the spacebar I get the following message in the echo area. <Hangul> is undefined I saw ...
0
votes
1answer
28 views

How to insert a new heading from a collapsed heading?

Here, two headings are collapsed, but they do have some content represented by org's s... * Heading 1... * Heading 2... How can I insert a heading right below Heading 2, including below all its ...
1
vote
1answer
24 views

Only run a function if it is a new session

In my init.el file, I have a hook to setup my workspace when I open a particular type file. Specifically, when I open an R file (i.e., *.R) and ESS-mode starts, a couple of other windows open with ...
1
vote
1answer
25 views

How to call Elisp functions from my own implementation of a shell?

I'm writing my own shell which can handle most of the GNU/Linux system calls now. So I was wondering if I could make this shell call Elisp functions too. Is it possible to do so? Is so, how do I get ...
0
votes
1answer
17 views

Defining keyboard shortcuts from an argument in a function

I would like to write a command that defines key bindings for me, so that I can feed in key y (for example) and have it define key bindings for M-y, C-y etc. I'm trying to concat the command argument ...
1
vote
1answer
19 views

How to redefine prefix key in org mode?

I have rebound C-u to another function, and try to use C-j for the prefix, but now it seems I cannot use the prefix in org-mode. It does seem to work in other modes though. ; This is the relevant part ...
0
votes
1answer
10 views

regexp-filer just searches headlines (org agenda view)

I have a problem with the filtering function org-agenda-filter-by-regexp: It just searches the headlines of the entries not the whole entry text. Example: * title :work: text Searching for the tag '...
2
votes
0answers
39 views

Call Python from YaSnippet and insert result

I'm trying to build a comparable functionality as described here: https://castel.dev/post/lecture-notes-1/#sympy-and-mathematica Basically, he's using something comparable to yasnippet to send a ...
0
votes
0answers
10 views

fresh install of Doom on Windows brings up a blank (white) scratch buffer and nothing more

Like it says on the box - I get the "doom loaded such and such packages on startup", but I don't get the home screen, and none of the keybindings etc. Just a white scratch buffer window with ...
0
votes
0answers
14 views

How do I move back to the previous page I was viewing, in Emacs Easy Customization buffer?

In the Info buffer, I can use the [ key to move the previous page, or the l key to move back through my personal viewing history. How can I do something similar, in the Easy Customization buffer? I'd ...
0
votes
0answers
7 views

How can I stop iso-transl running

I have run the macport emacs 27 on macOS. The bindins of my keys as as per mac-keys-mode (anmd aquamacs) and have Command key acting as alt. Thus all my key bindings are A-key This normally works. ...
2
votes
1answer
31 views

Cannot create org-babel matlab source block with vector input arguments

I want to create a re-usable matlab org-babel source block vectsb (say), which takes two vectors from a call statement, performs some operations with them, and returns the result in the call statement....
0
votes
1answer
14 views

“Tramp: Opening adb shell connection…failed” + extra characters ^[7 and ^[8 present

It happens when I try to connect from emacs-26.3/tramp-2.3.5.26.3 onto my sgs5's lineageos14.1 adb shell. *tramp/adb d73896d9* buffer contents is the following: nv COLUMNS=1 ls -d -l /; echo ...
0
votes
2answers
34 views

How do I search/replace with case sensitive search?

In emacs I'm using M-% to replace occurrences of b_abcd (of which there are only a few) with B_abcd (of which there are very many). Currently Emacs asks if it's OK to replace at each B_abcd, which ...
0
votes
0answers
18 views

undo-tree cannot stop the movement on the history tree

After opening undo-tree-and-diff and when I start to move in the history tree: If I just press up or down cursore for few seconds ; undo-tree keeps moving on the history (on the direction I pressed ...
0
votes
0answers
22 views

Emacs transparent after fresh install

Complete emacs beginner here. Just installed emacs in my Manjaro (awesomewm edition) machine using pacman. The emacs window is almost completely transparent, I can't read anything. If started from a ...
0
votes
0answers
14 views

setting jupyter console for interactive python fails

I am trying to get jupyter to be the default REPL, but I am getting errors. I installed prelude, and I want to actually change the python settings to the tutorial described here in realpython (I want ...
0
votes
0answers
8 views

adaptive-wrap-prefix-mode behavior is different/inconsistent inside a buffer

in org-mode I have adaptive-wrap-prefix-mode on. The indentation though has a inconsistent behavior. I have already tried to toggle visual-line-mode and word wrap but the sometimes correct and ...
0
votes
0answers
13 views

TeXStudio profile for emacs keybindings?

Does any have a TeXStudio profile for setting basic emacs keybindings (C-p, C-n, C-b, C-f, etc.)? I know I can manually set them myself, but TeXStudio doesn't deconflict hotkeys and the work would be ...
1
vote
1answer
27 views

org-agenda-todo-ignore-scheduled set to 'future seems to work for TODOs that have only a date and not a time

I use org-agenda-todo-ignore-scheduled set to 'future to ignore / not show TODOs in the global todo list that are scheduled in the future. org-agenda-todo-ignore-scheduled set to 'future seems to work ...
0
votes
0answers
16 views

Hwo to prevent emacs from keeping buffers open in helm follow mode

Each time I preview a file with helm-follow-mode it creates a buffer with the previewed file opened and doesn't kill that buffer after I end helm-find-files. How can I change this behavior such that ...
0
votes
1answer
26 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
1answer
30 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 ...
1
vote
1answer
24 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
12 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
69 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
27 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 I would just ...
1
vote
0answers
33 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() (...
1
vote
1answer
33 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
21 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
19 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
14 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
12 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. ...
2
votes
1answer
20 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 ...
2
votes
1answer
54 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
20 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
13 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
21 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 ...
1
vote
0answers
19 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
18 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
15 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
27 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
20 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
54 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: &...

15 30 50 per page
1
2 3 4 5
403