All Questions

4,850 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
233 views

Is there an ELISP decompiler?

I'm thinking of writing one so that when I get those horrible tracebacks from bytecode files, I can better see where I was at. Is there one already? Are there any other tools for showing an error ...
4
votes
0answers
725 views

Send a text from Emacs to Grammarly

Is there a nice way to bind Emacs and Grammarly. This is what I wrote to myself. A very simple plugin that helps you to send a marked text to Grammarly. It is a very simple plugin, is there a better ...
4
votes
0answers
120 views

Get Administrator privileges on Windows via TRAMP?

I constantly use /sudo::/ URI schema on Linux to edit protected files. Is there something similar on Windows? Currently I start Emacs with Administrator privileges but that can lead to write ...
4
votes
1answer
247 views

Org Mode: Difference in results when evaluating code block and evaluating called code block

I am a beginner who wants to evaluate a Call to a code block in an org-file and get the same results as when I evaluate the actual code block. Like so: #+NAME: Myblock #+BEGIN_SRC emacs-lisp :results ...
4
votes
1answer
274 views

(How) can I emulate {eshell,comint}-output-filter-functions in term?

What I want to do from inside a term shell is have a function called when there is new output or a certain regexp (e.g. a prompt) appears in in a term's output. The callback function should then be ...
4
votes
0answers
196 views

org-mode: I can recalculate all tables, or realign, but not both

I've got a dynamic block in org-mode (e.g. a clocktable) and I want to update it on save. To do this, I have written the following function (which I'm calling in a before-save-buffer hook): (defun my/...
4
votes
1answer
558 views

How can I get :LOGBOOK: into Column View?

The items in my org-mode file will have a number of properties relating to data points that I need to capture. In conjunction with this, I'd like to continue using C-c C-z to log notes tracking ...
4
votes
0answers
103 views

org-drill: set a maximum interval

org-drill allows you to configure the learning fraction (org-drill-learn-fraction) so that intervals grow over time. But it will grow without bound. How can I set a maximum interval?
4
votes
0answers
222 views

Echo contents of a heading of one .org file in another

Is there a way to have contents of a heading of an .org file echoed in another .org file, so that the text in the second file would be updated automatically when the first file changes? For example, ...
4
votes
0answers
130 views

hs-minor-mode: hide only some comment

In ESS mode with hs-minor-mode on, I want to collapse only those comments which directly belong to a function, not other comments which are separated by newlines. Take this example: ############## ##...
4
votes
0answers
156 views

Prettify symbols without screwing up alignment

Is there a way to prettify symbols without running into alignment issues? E.g. replacing not with ¬is visually pleasing, but screws up code alignment, b/c not is 3 chars while ¬ is one char. Since ...
4
votes
1answer
601 views

How to use web-mode to edit multiline HTML inside backticks?

I often work with Angular and Typescript, and I'm fond of putting my Angular templates directly into my Typescript files. The resulting code is essentially Javascript with HTML snippets in it, like ...
4
votes
0answers
313 views

Control vertical spacing between paragraphs in org-mode export?

I want to export org-mode to PDF or preferably ODT format. How do I set arbitrarily vertical space, e.g space before paragraph 6pt, space after 12pt. Is there any global option for me to do this?
4
votes
0answers
115 views

(set-charset-priority 'unicode) ; should I do it?

I've seen the following in some init files, (set-charset-priority 'unicode) but after reading the documentation, I can't really say I understand the implications of this. In general I'm inclined to ...
4
votes
2answers
565 views

Context-aware auto completion for Go

Is there any context-aware auto-completion for Go e.g if I enter "fmt." after importing the library, auto-completion should pop up and suggest me the functions like "Println" etc.
4
votes
0answers
1k views

How to embed external file contents in org file?

I'm creating a simple bash tool that uses various flags/arguments from the user, and I'm using an org file for the documentation. I have several examples and I'd like to include some explanation of ...
4
votes
0answers
82 views

Org agenda sort by clocked time

I want to get a list of recently finished things out of org mode. org-agenda and org-agenda-sorting-strategy seem like the way to go, however none of the options (see describe-variable on this) seem ...
4
votes
1answer
421 views

Export all org-mode sections as Beamer frames?

Is there a way to have all of my Org-mode sections export as Beamer frames? For instance, if I have a document like * A ** B ** C then I would like a slide for each of A, B, and C. Setting H:2 gives ...
4
votes
2answers
5k views

How do I toggle soft-wrapped lines in org-mode?

I want to be able to toggle soft-wrapped lines in org-mode. My .emacs file has this code: ;;;;;;;;;;;;;; ;; Org Mode ;; ;;;;;;;;;;;;;; (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca"...
4
votes
1answer
583 views

Under Windows, Emacs cannot handle encodings correctly for subprocesses, can it?

I have two simple text files on my D: drive, as shown below. D:\我.txt I D:\你.txt You After I execute M-x diff and type the correct filenames (Yes, I can input Chinese and filename ...
4
votes
0answers
56 views

How to prevent single lines from disappearing when cycle with TAB key?

Sometimes my latex commands (with #+LATEX:) get buried within my org document. Can I disable the visibility cycle behavior for single lines? A preferred behavior would be to leave non-indented lines ...
4
votes
0answers
400 views

How to make racket the default implementation for geiser mode

The geiser documentation suggests that setting geiser-default-implementation is one way to prevent run-geiser from prompting for a scheme implementation. Another approach suggested by the geiser docs ...
4
votes
0answers
271 views

Org-babel and anaconda-mode in src blocks

I practice python literate programming with tangling to generate a full project structure. There are dependencies between modules and packages, and so I will say in the C-c ': #+begin_src python ...
4
votes
0answers
87 views

Typing in Live-Rendered Markdown

I know there are ways to preview markdown as you type but is there a way to avoid this duplication of text (rendered and pain text in different buffers)? Basically, I want to type in the preview. ...
4
votes
0answers
503 views

ispell-phaf no matching entry for en_Gb after update to macOS Sierra

I have update to macOS Sierra after witch spelling in Emacs is broken. The error I get is (ispell-phaf: No matching entry for en_GB in ´ispell-hunspell-dict-paths-alist´) I have both install aspell ...
4
votes
0answers
123 views

How to let `recentf` not to remember real path when there's a symbolic link?

Since my .emacs.d is a symbolic link of ~/dotfile/dot/.emacs.d, recentf keeps duplicated thing like /Users/user/.emacs.d/init/init-editor.el /Users/user/dotfile/dot/.emacs.d/init/init-editor.el ...
4
votes
0answers
127 views

Use colors with artist-mode

Is there a good robust method to draw with colors in artist-mode or a similar mode? By this I mean setting the foreground and background faces to colors such as red, green, blue, etc. for individual "...
4
votes
1answer
1k views

Can I automatically export org deadlines and scheduled tasks as an iCal file and import it with another calendar app?

I would like to update Google Calendar / iCal automatically by exporting my org deadlines and scheduled tasks in .ics format, then automatically importing them into a cross-platform calendar app. I ...
4
votes
0answers
123 views

Is there some way to continue reading from a STDIN file descriptor when data is PIPED to Emacs on Command-line?

Historical Perspective On Unix like operating systems, it is common practice to redirect IO between shell commands using pipes. For example, the command below would insert all the lines that didn't ...
4
votes
0answers
144 views

Is there any way to postpone or update all expired deadlines (or scheduled tasks) at once?

Is there any way to postpone or update all expired deadlines (or scheduled tasks) at once in org-agenda mode? I tend to schedule more than I can handle and need a way to quickly either (a) remove old ...
4
votes
0answers
163 views

JavaScript REPL in skewer-mode

I'm using skewer-mode and can't use the skewer-repl, which is unfortunate. I get a prompt js> then I can enter anything, nothing is happening... js-REPL:run and Shell-Compile are running as major ...
4
votes
0answers
83 views

undo-tree tree manipulation/cherry picking?

Is it possible to cherrypick changes from different branches in undo tree? For example say I make a change call it change1. I then undo, and make a change, call it change2. I then undo, and make a ...
4
votes
0answers
62 views

Transparently reconnect to servers after a system suspend

I have multiple IMAP and NNTP servers configured in Gnus, mostly over SSL using the integrated GnuTLS. When I put my laptop into suspend-to-RAM for a while, the TCP connections will obviously drop ...
4
votes
0answers
513 views

prettify-symbols-mode not working in auctex

In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda. My understanding is that in a .tex file I should see the beta ...
4
votes
0answers
134 views

truncate-string-to-width doesn't pad/print the string, as documented

I am referring the documentation for truncate-string-to-width from here. It says, (truncate-string-to-width "\tab\t" 12 4) will output, ab But what i get in my machine (emacs versioned 25.1.50.1)...
4
votes
0answers
942 views

Org-Mode Agenda Open in Left Window by Default

With a vertical split (C-x 3), regardless of which buffer I am in, C-c a opens the agenda on the right window, pushing my org file into the left window. Is it possible to have the agenda open into ...
4
votes
0answers
129 views

Emacs: mark contents as type image in copy to clipboard

When using pdf-tools (https://github.com/politza/pdf-tools) I'd like to be able to select and area and copy it to the clipboard as an image, so as to insert into other applications. Selecting is easy ...
4
votes
0answers
290 views

Indentation using multiple org src block

So, say I have a literate org file as follows: #+TITLE: Random Scrap * Do something :PROPERTIES: :tangle: scrap.pl :comments: org :END: #+BEGIN_SRC perl sub my_func{ my $var = pop; #+END_SRC ...
4
votes
0answers
73 views

Loading a theme and fontifying in batch mode

Loading a theme in batch mode seems to not set face attributes: $ emacs -Q --eval "(load-theme 'tango t)" \ --eval "(prin1 (face-attribute 'font-lock-keyword-face :foreground)))" "#346604" ...
4
votes
0answers
456 views

How to disable schema validation in nxml-mode but keep validation of well-formedness?

By default, nxml-mode looks at the name of the root element and decides to validate the document against some schema based on that name. I would like to disable this and just validate that the ...
4
votes
0answers
100 views

Highlight *other* occurrences of symbol

I've found that using the highlight-symbol-mode provided by highlight-symbol works very nicely for highlighting all occurrences of the symbol at point, automatically (without my pressing anything). ...
4
votes
0answers
317 views

Quitting emacs is very slow

Quitting my Emacs takes a really long time. Is there a good way to track what's happening while quitting Emacs? (So far I'm turning to git blame to figure out what changes I have made to cause this ...
4
votes
0answers
822 views

Column view in org-mode custom agenda command

I am trying to define a custom agenda view that includes two agenda commands: The first will list all unscheduled tasks with tag A (using standard view). The second will list all scheduled tasks with ...
4
votes
0answers
883 views

Scaling of inline SVG previews in org-mode

If I insert a jpg in my org-mode document, I can preview it and scale its width, like so: Add the following code to my init.el file: (setq org-image-actual-width nil) Then insert this code in my ...
4
votes
0answers
797 views

Emacs takes a very long time to read/save to the clipboard

Sometimes emacs takes a very long time (+ 30 seconds) to read from or save to the system (Linux) clipboard. The entire emacs session hangs while it does this and I can't cancel it with C-g or ESC ESC ...
4
votes
0answers
616 views

FZF broken displaying in emacs terminal

I'm struggling to run fzf in emacs but cannot figure out whats my problem. When I run fzf - and start typing - text gets mess up, similar to this: I tried run fzf in term, eshell, ansi-term, multi-...
4
votes
0answers
304 views

How to get org-mode to resume list numbering from where it left off

Related: https://stackoverflow.com/a/21475047/52310 I want to write something like: 1. foo 2. bar intervening text 3. baz 4. quux The two easy almost-solutions are: Make "intervening text" part ...
4
votes
0answers
197 views

helm-git-grep and helm-swoop at the same time

I heavily rely on helm-git-grep to find stuff. When there are just too many results though, I'd like to narrow the results down with file name. (possibly with helm-swoop) Here's what I do for the ...
4
votes
0answers
53 views

AUCTeX automatic extraction: beyond regexps

In my custom style support file, I would like to add custom code to parse an environment. That is, my LaTeX code looks like this \begin{foobar} some complex stuff \end{foobar} and I don't want to ...
4
votes
0answers
45 views

Display all internet connections during startup

How can I display all Internet connections that are used during startup? Sometimes I work in a low speed Internet environment and I would like to remove all the Internet connection code during startup....

15 30 50 per page
1
3 4
5
6 7
97