All Questions

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

Org Mode - Stop Recurring Events From Appearing as Late on Agenda

I am using the org mode agenda and my issue is that recurrent scheduled items appear as late everyday. For example an event that happens every Tuesday will also appear every Wednesday as 1 day late, ...
0
votes
1answer
6 views

Automatically fixing bad indentation (Scheme-Lisp)

Let's say I make this code with bad formatting: is there an emacs command that can automatically fix indentation? I know this question has been asked a few times before, but all the answers I've seen ...
0
votes
0answers
7 views

Why does ido, when used with recentf, show candidates in the order it does?

Wanting to stay simple as possible I refrain from using Helm or Ivy etc. and use IDO. Ido-switch-buffer is supposed to allow me to access recently opened buffers quite efficiently with the help of ...
0
votes
0answers
10 views

emacs -nw mode, when you paste in some text from another application emacs sometimes misses parts or stops halfway. how can I mitigate it?

In macOS in emacs -nw mode, when you paste in some text from another application emacs sometimes misses parts or stops halfway. Often I see a tilde as the last character entered, when there wasnt even ...
0
votes
0answers
9 views

Doing grep on files after doing helm-grep-do-git-grep?

For example, you helm-grep-do-git-grep with foo Helm will give you list of matching lines. Let's assume there are 100 matching lines in 12 files. I want to do helm-grep-do-git-grep with bar on those ...
0
votes
0answers
18 views

defun to replace regex pattern with original pattern plus new line

I have written the following lisp code to search for a regex pattern and append new line to it: (defun readmode () (interactive) (goto-char 1) (while (search-forward-regex "\(</[a-z]+>\)" ...
1
vote
0answers
35 views

How to quickly revert the buffer?

revert-buffer is often slower than closing an opening the same file. I've noticed - for example, I can undo to the state of the file before reverting. While this might be useful in some cases, I ...
1
vote
0answers
12 views

Org mode + table.el: Use Org formatting inside cells

Say I have a table in an Org document looking like this: (Source) +----------+-----------+----------+-------------------------------------------------------+ | Date | Day | Pages | ...
1
vote
2answers
22 views

Automatic periodic reload of all orgmode agenda files

I use about 15 orgmode agenda files, and a number of them I use passively only. Examples are my wife's agenda converted from Google calendar, a work agenda from Outlook and a list of git commits (...
3
votes
1answer
50 views

Run R code on selected object

I am missing (or not aware) of a feature in ESS to run some R code on selected text. When editing a script, like df1 <- data.frame(a=1:100,b=rnorm(100)) I often want to see head(df1) in my ...
1
vote
1answer
24 views

Don't consider space and tab as abbrev-expand commands, but keep the C-x whatever shortcuts intact

I read the docs (at bottom) but can't figure this out. I just started using "abbrev.el", and find that pressing space, tab, C-x ', C-x a ', C-x a e can cause the expansion to happen. what if I find ...
1
vote
1answer
14 views

Improving Etags support for fortran?

When using xref with Fortran I noticed that indexing by etags is highly incomplete; Almost exclusively subroutines (and maybe functions) are index, but modules, types, constants and global variables ...
1
vote
0answers
15 views

Merging diffs/hunks

When using ediff, I often get conflicts like this: <<<<<<< variant A added_function_1 () { ======= added_function_2 () { >>>>>>> variant B <<<<&...
0
votes
1answer
16 views

Tramp x11 on Mac os (local) , centos (remote)

I understand that I should be able to use X11 to show graphs from a remote R when I use a local emacs to connect to the remote machine with tramp. I have tried a few different things but can not get ...
0
votes
1answer
20 views

When does shell-command-on-region actually pass the region to the command?

I am having some trouble understanding how shell-command-on-region works. Sometimes the region is passed to command, sometimes not, as far as I can tell. Suppose I have an emacs buffer with "word" in ...
0
votes
0answers
20 views

doom-emacs freezes when trying to open a any file that uses c-mode or c++-mode

Exactly as title says, I attempt to open c/c++ files in any way, or event just enter c-mode/c++-mode in any buffer and my emacs freezes. I have basically no configuration that should affect it, my ...
0
votes
1answer
22 views

How to make `pulse-momentary-highlight-region` stop highlighting after 1 second?

When I do pulse-momentary-highlight-region, the highlight stays till I press any key. (I'm on macOS emacs -nw.) How can I make the pulse to go away after a short while?
1
vote
1answer
19 views

Can which-key help with extended keyboard shortcuts?

I have two shortcuts defined like this ;; eval in shell (global-set-key (kbd "C-c x s") 'eir-eval-in-shell) ;; eval in ruby (global-set-key (kbd "C-c x r") 'eir-eval-in-ruby) which-key helps me ...
0
votes
1answer
29 views

Check whether buffer is in org-mode

I want to programmatically check whether the current buffer is in org mode. I know that major modes should usually define the variable <modename>-mode, i.e., org-mode should be a defined ...
0
votes
0answers
12 views

Render bmp images in org mode

I want to quickly embed images in an org document and am trying to use org-download to help me. However, due to a silly bug in Firefox, images are saved as .bmp files. The result is that org-...
0
votes
1answer
21 views

Aquamacs for macOS Mojave and Catalina - error in process filter: ‘recenter’ing a window that does not display current-buffer. How can I fix this bug?

I'm a very new Mac user and not really an Emacs user. I just use emacs to run PVS Specification and Verification System, by typing the pvs command in the terminal to start the software. Aquamacs was ...
1
vote
1answer
30 views

Why in dired+ mode some text is strikethrough?

Windows 10, Emacs 26.1, Dired+ (download from here https://www.emacswiki.org/emacs/download/dired%2b.el) Open some directory: Here result: Why some text is strikethrough?
0
votes
1answer
28 views

Why does emacs add a tab to the current line when I use “expand abbreviation” feature?

Apologies if my question is silly, it's my first day using abbrev expand. I have an abbrev set up like this "bm" 3 "bookmarks-acd1fe" When I press bm tab, I end up with bookmarks-...
0
votes
1answer
11 views

Python and electric-indent: newline autoindent disregards previous blank line

This is (yet) another question related to electric-indent-mode and Python, but since I couldn't find what I address here in the other ones, here we go. I find the behavior of electric-indent-mode ...
2
votes
1answer
45 views

What exactly is the difference between `font-family` and `font-foundry`?

What is the historical context of these two terms? Why are they distinct? And why are they needed? What pragmatic utility is there in knowing how these two terms differ? In terms of Emacs/Emacs Lisp, ...
2
votes
1answer
27 views

Org Capture - prepend after org header/config block?

One of my org capture templates (in my init.el) looks like the following: ("n" "Note" plain (file "/path/to/file.org") "* %^{Title} %U \n%? \n" :prepend t) I'd like ...
0
votes
1answer
11 views

Avoid Adding Backslash to Curly Brackets when Exporting Latex

I want to export an org tree to latex, but whenever I have a command that nests curly brackets, org export will automatically prepend all brackets with a backslash. For example, the tree: Exports to ...
0
votes
0answers
16 views

Syntax/indentation problems with Vue mode in Emacs 27 nightly

I'm using vue-mode, based on mmm-mode with Emacs 27 nightly from 10/10/2019. Since that Emacs update, I don't get any indentation support in the script section of a Vue file. Try this file with emacs -...
1
vote
1answer
28 views

Copy to PRIMARY selection in command

I'm a novice in Lisp, so I feel like I'm missing something very basic here. My intention was to create a function/shortcut to remove all whitespace and newline chars from the selected text and copy ...
1
vote
0answers
18 views

Why does this org session src block not give me the right results?

I am trying to up my literate coding chops and solving some programming challenges with it. Here is the full writeup of the exercise I'm playing with Mostly everything works and I understand ...
0
votes
1answer
9 views

Can “kaz-yos/eval-in-repl” use the prexisting “inf-ruby” console started by robe mode

I've been using org babel to execute ruby code, works well but wrapping blocks with begin_src/end_src is cumbersome no live output - i have to wait till the whole process finishes to see output ...
3
votes
2answers
92 views

How to denote an aside in org?

I am trying to go deeper with org mode to the literate coding stuff itself rather than merely for markup. I am writing a document where I'm solving some coding challenge, and part way through ...
0
votes
0answers
27 views

What are all of these predefined items when I do `M-x edit-abbrevs`

When I do M-x edit-abbrevs I see a long list of items, along with my item. I added only one abbrev. I hate surprises, so I want abbrev to expand only my things. So should I comment out stuff like ...
0
votes
0answers
9 views

why does flap prompt me instead of taking me straight to the file?

Why does ffap prompt me instead of taking me straight to the file? there's no ambiguity, the file simply exists. for example ~/work/notes.txt looks like I'm not the only one with the issue
1
vote
3answers
45 views

How to delete numerals of a certain size from text

I'm pretty new to emacs, so I'm still learning all the functions. I'm trying to remove certain metadata from each line of several large .txt files (Bible translations) and was wondering if if there ...
0
votes
0answers
9 views

How to force left flush before next main header in `org-mode`

I am trying to add two more empty lines before the next main header and a solid line like so: ----- * Header 1 ** Header 1.2 \\ \\ ------ * Header 2 How can I align \\ and ----- to left ...
0
votes
0answers
30 views

Getting operation not permitted when trying to open projects or use integrated terminal in emacs-doom

While using MacOS Catalina (which is suspect is the problem) I recently decided to try emacs, as a recommendation from a friend. I finally get it working and generally figure it out and now when ...
0
votes
0answers
43 views

How to execute a org-babel source block within the working directory?

Say you have the following org-babel source block: #+BEGIN_SRC latex :results raw :file test.pdf \LaTeX #+END_SRC When executing it, org-babel will do the actual compilation in a temporary directory ...
0
votes
1answer
34 views

`eval` in `rx-to-string` works in `*scratch*` but not in code

I am trying to code an rx-to-string form that contains an intermediate regexp. This code works in Lisp Interaction Mode: (let* ((a-plus '(one-or-more "a"))) (rx-to-string '(sequence (eval a-plus)))...
0
votes
0answers
24 views

Broken Python and can't find System back-up. Can I save without re-install? Why? and/or Why not? ~ Samuel [on hold]

I'm not sure, I think I recall prepping python wit some feature and trying to remove it then trying to remove Python itself somehow using the emacs editor? Oh heck, not long ago I never heard of an (...
0
votes
0answers
35 views

Constructing a nested tree from an org heading hierarchy

I have a custom tangling function traverses an org file. It matches the nearest heading or block. If it matches a heading it collects a list that looks like (level header tags). If it matches a ...
0
votes
0answers
10 views

How to show page number using pdf-tools in emacs mode line?

As title said, is there a way to have page number shows up in the mode line of emacs? I am not using any fancy power-line, this is stock emacs mode line.
2
votes
1answer
34 views

Match any character in a regexp (e.g. `string-match`)

In perl when matching multi-line strings you can add the s modifier /.../s that will change the semantics of . to match also newline. Is there something similar for string-match? Or is there a ...
0
votes
0answers
18 views

How do I get code signature snippets with lsp-mode/lsp-ui/company-lsp?

I see on the front page of https://github.com/tigersoldier/company-lsp when you type the function name it autocompletes not just the rest of the name, but the signature as a snippet, enabling you to ...
0
votes
1answer
20 views

Troubleshooting a hanging `list-processes`

Normally I'd use M-x list-processes to see what Emacs is running in the background. But in this case list-processes itself hangs. What is the right thing to do in this situation?
0
votes
0answers
25 views

How to enable treemacs visibility on by default?

I have treemacs setup and currently using s-1 for toggle. But I would like to display the treemacs window always during startup. How to make it visible?
1
vote
0answers
29 views

emacs: Work out which monitor is the primary one

Is there a way to programatically work out which display is considered the "primary" display for X within emacs? I've managed to get a function working that determines if the machine has more than ...
1
vote
1answer
19 views

Can't mark specific folder in all subfolders in dired mode

Emacs 26.1 Windows 10, Dired Show content of folder "myproject". All files and subfolders. M-x dired-maybe-insert-subdir (C-u i) -R and here result Nice. Now I want to mark only folder build %m ^...
0
votes
0answers
10 views

For spacemacs, how do I override a layer's setting? (company-minimum-prefix-length 0 in web mode)

Using Web mode if I type <div> and wait 0.2s later (company-idle-delay) I get a menu with every possible HTML tag I might want to use after that. It's pretty useless. If I am editing inline ...
0
votes
0answers
18 views

Emacs mac-right-option-modifier variable doesn't work with Sticky Keys on in macOS

I've set right option modifier as super key using `(setq mac-right-option-modifier 'super) but if I have Sticky Keys on on macOS, it doesn't work.

15 30 50 per page