All Questions

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

Add horizontal line to every line

I recently saw this image on r/unixporn. How can I recreate the 'notebook' effect: the broad line-height and underline of each line, but in Emacs (iiuc this is achieved using rxvt + pixmaps in Linux).
0
votes
0answers
9 views

org-mode: copy link to different part of the document

I have created a new org document and invoke org-insert-link to insert a link. Now it's rendered like this: Link description Now if I copy the link via the usual method of emacs, I just get the text &...
0
votes
0answers
9 views

Adding a new code formatter

How can I add a custom formatter that will be picked up by doom-emacs' format ((format +onsave)) module? I want to run the erlfmt program on save when editing Erlang files, but I'm not sure how I ...
0
votes
0answers
20 views

Many org-mode functions suddenly broken

I woke up this morning (after using org mode all of yesterday - I have not manually updated anything or changed my config file until after the fact) to find that many of the functions of org-mode that ...
0
votes
0answers
5 views

emacs debugging -interpreter-exec being displayed when should see string returned from function

This is a problem I am seeing running emacs v26.1 on Windows 7, but the problem does not appear to be present when running on ubuntu. Code below: #include <iostream> #include <string> ...
0
votes
0answers
7 views

Can't drag and drop ORG files from Finder as Emacs creates a downloaded copy

The title explains it clear: I use Prelude. Whenever I drag and drop a ORG file from Finder to the Emacs window, I get a buffer saying: #+DOWNLOADED: file:/path/to/file/myorgfile.org @ 2020-07-06 08:...
1
vote
0answers
17 views

prettify-symbols-mode enabled for major mode, but ligatures don't show until toggling prettify on and off

I'm pretty new to emacs and giving it a shot because it seems to be much better integrated with the OCaml tool chain than any other editor. Since OCaml uses a lot of symbols, I want to enable ligature ...
0
votes
0answers
5 views

noqa does not suppress the warning for pyflakes:imported but unused [PYF]

The error I am getting is pyflakes: 1 '_utils.colorer' imported but unused [PYF]. I was not getting this error but it started to emerger right after I enabled mypy3. Using # NOQA, # flake8: noqa did ...
0
votes
0answers
11 views

saving cloned buffers in workspaces/desktops/perspectives etc

i would like to be able to save a window (in emacs terms) layout with cloned buffers. i don't need it to save a series of buffers, i just need to be able to load a complex window layout when i work on ...
0
votes
1answer
25 views

Open folder in emacs and type name to match file

I have this line in my init.el: (global-set-key (kbd "C-c g") (lambda() (interactive) (find-file "~/Dropbox/myorgfiles"))) So when I type C-c g I get the directory contents of the ...
0
votes
0answers
23 views

setting “org-tags-column” has no effect

i've recently started using tags in my homebase org file, and set my org headings to ignore my otherwise enabled variable-pitch-mode so that right-alignment of the tags would work. but when i try to ...
2
votes
1answer
64 views

WoMan italic `\,VARIABLE\/ representation

When I do M-x woman => ln , as you can see italic variables are represened as in between following pattern \, - \/. How could I revmoe or fix it? Setup: (setenv "MANWIDTH" "72"...
0
votes
0answers
35 views

Can I set MANPAGER to open a man page with emacs?

I am able to use man inside emacs. M-x man , <ln> , [enter]. => From the shell can I open man pages from the shell? For examlpe doing $ man ln can open the man page inside the emacs? $ ...
0
votes
0answers
14 views

Simple password based file decryption/encryption compatible with command line program?

What works currently: With emacs25 (as comes with ubuntu 18) I use ccrypt on the command line to selectively en/decrypt a few specific text files. There is a package elpa-ps-ccrypt which, on ...
0
votes
0answers
16 views

mu4e: Refiling email while making an org-todo

Background: I read my email through mu4e in (Doom) emacs. I set up an org-capture template that stores a TODO with a link to the current email I'm viewing, all working great. But typically I do this ...
0
votes
1answer
24 views

How to call an interactive function and pass arguments to it from within Elisp?

I'm trying to compose a link to the describe-package help buffer to the xref package like this: [[(elisp:(describe-package "xref"))][xref]] But it can't execute. So I wonder how to pass ...
2
votes
1answer
14 views

Derived major mode: new keyword fontification not playing nice with parent mode's

I am writing a major mode derived from f90-mode in order to fontify the syntax of a commonly used Fortran preprocessor, fypp (similar to jinja2 for HTML templating). Here's a contrived example of what ...
0
votes
0answers
8 views

android - sqlite command from powershell

I run below sqlite command from powershell in win10, but it report error message: Error: no such column: android_id That column android_id exist in the database actually! adb shell "sqlite3 /...
0
votes
1answer
22 views

Asterisk in interactive specification

Just when is it appropriate to put the asterisk * into the interactive spec of a command function? The elisp manual says the effect is to cause an error if the command is attempted in a read only ...
2
votes
1answer
40 views

How do I save raw bytes into a file?

I'm trying to make a .wav file generator in Emacs Lisp. I have some binary data, as a sequence of bytes: (setq binary-data (list 62 236 60)) I would like to insert that data into a file. I expect ...
1
vote
0answers
55 views

Pre-populate property entry menu with items from setup file

I have a collection of Org files that all link to a central properties file in which I specify _ALL properties so that I can get uniform entry of information across many files: #+SETUPFILE: ../../...
0
votes
0answers
38 views

Limit property entry by type or regular expression

It is possible to get Org to limit the values you can enter for a property by using the special _ALL property. For example, if I want to limit the CONDITION property I could use: #+PROPERTY: ...
1
vote
1answer
14 views

Excluding frames from handout when exporting to LaTeX Beamer

I would like to exclude certain slides when I export my document as a handout using the corresponding option #+LaTeX_CLASS_OPTIONS: [handout]. I know what I need to arrive at in LaTeX to achieve this: ...
0
votes
0answers
17 views

Use iconv directly on the selected region to convert codes

I copied and pasted the C code as: int main(void) {    statements    return 0; } to org's babel code block, when strike C-c C-c, it report error: /tmp/babel-uaYVXU/C-src-Pd1SZs.c:11:6: error: stray ‘...
2
votes
1answer
37 views

What is the runtime complexity of using beginning-of-line?

I did a test where going to from the end to the beginning of a 50 million length line happens instantly when using beginning-of-line. I wonder if this is because it is a C primitive or because Emacs ...
0
votes
1answer
26 views

switch-to-buffer from org mode code block

Evaluating a code block containing (switch-to-buffer "test-buffer") does not display test-buffer. It creates the buffer, but it does not switch to it. #+BEGIN_SRC emacs-lisp (switch-to-...
0
votes
0answers
23 views

Org-ref: how to get absolute path of bibliography in exported LaTeX file

I use Org-ref to insert references in Org mode when writing articles. I prefer to put bib files in a separate place, say /bib/ref.bib, instead of putting together with org files in ~/org/. After ...
0
votes
0answers
16 views

Script to select first-error to next-error as region and output file for each make run in SUBDIR variable

I want to write a emacs script that could automatically run make in multiple directories either using bash's for f in [dir] or within a SUBDIR variable defined in a top level Makefile. This would be ...
0
votes
1answer
26 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
0
votes
0answers
44 views

Python : name '__file__' is not defined

So as you can see, in my terminal, I was able to execute the file without error, but once I tried from the python shell, whether in the terminal or the one integrated in Emacs, there is an error, it ...
0
votes
1answer
39 views

How to diagnose emacs running at 100% cpu

I'm having a problem where occassionally emacs will run at 100% cpu, and just hang forever. I've attached gdb to the process, and this is the stacktrace: #0 0x00007fc210e5c5bb in pthread_sigmask () ...
0
votes
2answers
34 views

how to make emacs follow links to files outside of org mode?

I'd like to embed a link to a file in say Python code, is there a way to let emacs know to look for org style links outside of org files? Or is there a better way of achieving this? Cheers
0
votes
1answer
44 views
+50

org-set-effort fast effort selection?

I wonder if there is any easy way to configure effort selection dialogue to allow selecting effort value from the list using single key. Currently I have configured Effort_ALL in the following way: (...
0
votes
0answers
7 views

Can I make projectile open a default file when I switch to a project?

I'm using helm-projectile in spacemacs. SPCpp runs helm-projectile-switch-project, which gives me a helm completion buffer for projectile projects. When I choose a project and hit enter, I then get a ...
0
votes
0answers
14 views

No match for ess-rdired

I'm not able to invoke the rdired-buffer when typing M-x ess-rdired, I get a "no match"-message. I'm also not able to find the function ess-rdired in the documentation (via C-h f). Any idea ...
0
votes
0answers
26 views

How do I reload config in other instances of emacs?

Say, I changed ~/.emacs, but I have another instances of emacs running. I believe unless I do something, they might change the config (because they have a stale notion of its contents), which in turn ...
0
votes
0answers
20 views

debugging c++ code with dap-mode in Emacs does not display std::variables (e.g., vector, map, etc) correctly. Any idea to solve this problem?

When I debug c++ code in dap-mode with Emacs, the std::variables, such as vector and map, always have values, [0]: std, shown in the local variable area. Does anybody know what is going on? I am on ...
1
vote
1answer
38 views

How can I set and jump to file-specific Bookmark+ bookmarks

I am trying to use Bookmark+ because I would like the ability to create bookmarks with the same name that jump to locations in different files. E.g. I have files foo and bar open in emacs. I would ...
0
votes
1answer
19 views

Can I navigate Bookmark+ bookmarks like I can with e.g. helm-bookmark?

I am experimenting with Bookmark+ and would like to be able to navigate to a bookmark using a similar workflow to that which I currently use to navigate bookmarks. For example, previously in order to ...
0
votes
1answer
21 views

Display Δ in the *Shell Command Output* Buffer

I have a shell command I'm running from Emacs that has a Δ character in its output. How can I configure the *Shell Command Output* buffer to display UTF-8 by default? edit: There could also be ...
1
vote
1answer
18 views

How to print escaped characters with princ

When Emacs shows an integer value in the minibuffer, or as an output to IELM, it shows three representations of it -- octal, hex and as character: ELISP> 10 10 (#o12, #xa, ?\C-j) This is really ...
0
votes
0answers
15 views

What gets shown in *Messages* when I run pushd in shell, and how to modify it?

I use inferior shells (initiated with M-x shell) extensively. If the current buffer is one such inferior shell, and within this shell I invoke the pushd command (with or without an argument), a space-...
0
votes
0answers
12 views

Aligning the colon in multi-line tertiary expressions in C and C++

Suppose I have the following line double dx = r1 < 1 ? sqrt(r1) - 1 : 1 - sqrt(2 - r1); I press enter and tab at the colon causing Emacs to align like this: double dx = r1 < 1 ? sqrt(r1) - 1 ...
0
votes
0answers
34 views

Unable to change emacs python indent

My Emacs's python-indent-offset is fixed at 2, even though I have the below code in my init.el to set it to 4. I used C-h v to describe the variable, it says its value is 2 and default is 4. I removed ...
1
vote
2answers
82 views

Show only one or two lines of a buffer

I need to check numbers in a buffer each on a line against an external paper sheet To make this easier I would like to make the window very narrow to see only one (or max. two) lines. However shrink-...
1
vote
1answer
43 views

How to code a command to `write-region` to a particular file?

I have a system that I am not allowed permissions to install software but need to copy text from the remote server to the host computer's system clipboard. Because I can't install xclip or xsel and I ...
0
votes
0answers
11 views

Archive all marked entries with evil-mode

I recently switched to evil mode and cannot figure out how to archive all marked entries at once. The way I did it earlier, when I was in a list seeing the candidate entries for archiving I pressed * ...
0
votes
0answers
17 views

Searching with DuckDuckGo Lite in emacs-w3m - broken

It used to work in DuckDuckGo with the following code in my dot-emacs: (require 'w3m-search) (setq w3m-search-default-engine "DuckDuck Go") (add-to-list 'w3m-search-engine-alist '("...
0
votes
1answer
26 views

org agenda not loading org-agenda-files funkiness

My config file has the following funkiness: I have the line (setq org-agenda-files '("~/org/tktodos.org" )) followed by the line (org-agenda nil "a"). When my org file loads, I can ...
0
votes
0answers
9 views

Ocaml merlin binary not found / weird string being prepended to merlin-opam-bin-path

Using spacemacs with the ocaml layer and I get the following error when I edit a source file: Error from syntax checker ocaml-merlin: Searching for program: No such file or directory, alias: Expected ...

15 30 50 per page
1
2 3 4 5
388