All Questions

Filter by
Sorted by
Tagged with
21
votes
4answers
3k views

Hide *compilation* window

It is annoying to see the compilation window appear when it is successful. How to remove that automatically? I want to see it though if it is not successful.
0
votes
0answers
15 views

How to pop up auto-correction box with keybinding using company

I am using Company for auto-completion. While I am typing a box with suggested words show up, later when I do a space and delete the space same box does not show up. => Then I do space and delete ...
1
vote
0answers
26 views
+50

Org Mode use radio target for Chinese Texts

Radio targets in org-mode work by recognizing spacing between words. This makes the function redundant in when work wth Chinese and Japanese texts. I discovered an interesting function in ol.el with ...
3
votes
5answers
50 views

Manually close a (compilation) window that was most recently opened by running e.g. 'grep'

I'm trying to find a way to quickly close the window that I just created by running 'grep' (i.e. a kind of compilation window). I'd like the solution to be independent of my current window layout and ...
0
votes
0answers
4 views

Links to .org files are not recognized as links in org-mode

I've been trying to use links in my org files but it doesn't work as I'd expect. It works as is should - convert [[target][Desc]] to Desc and make it clickable for any target, except when the target ...
2
votes
1answer
273 views

Always show expanded Magit sections by default

Sometimes the sections such as "Recent commits", will be closed by default. Can I set it so they are all always open by default? But before I made the commit, recent commits was opened. After the ...
12
votes
4answers
5k views

Emacs point(cursor) movement lag

When running previous-line, C-p or <up> the cursor jumps up a line without any issues or lags. When running next-line, C-n or <down> the cursor properly jumps down a line, but with a ...
1
vote
1answer
8 views

Disable coloring of text in operations in emacs -nw, during operations like searching

I'm using gnu emacs as emacs -nw in a terminal window. Colored text is usually almost completely illegible for me. As recommended in this answer, I have done the following in an attempt to get rid of ...
4
votes
1answer
38 views

change use-package indentation

I'd like to change use-package's indentation style to look more distinguishable, (more or less) similar like the following indentation style: (use-package foo :commands (gah) :init (setq f 1) ...
0
votes
1answer
38 views

Disable clickable links for misspelled words (flyspell)

Is there a way to disable the way flyspell converts misspelled words into clickable links, as well as the background colour (pink, at least for my colour theme) it uses? I find it confusing and ...
0
votes
1answer
22 views

Symbol's function definition is void: cl-loop

I'm trying to turn off all colored text when using gnu emacs as emacs -nw on linux. This answer gives a snippet of code to use for this purpose: (cl-loop for face in (face-list) do (set-face-...
115
votes
10answers
72k views

How do I reload a file in a buffer?

I usually work on files which are updated in the file system via version control. What's a quick way to reload a file without having to C-x C-f the file again and getting asked if I want to reload it?
0
votes
1answer
13 views

use-package: autoload function outside the main package file

I am trying to install simplenote2 to read my org files on my phone. The official setup method is: (require 'simplenote2) (setq simplenote2-email "email@example.com") (setq simplenote2-password "...
0
votes
1answer
26 views

Using ctrl-n and ctrl-p inside the box for suggessted words to auto-complete

By default to move up (ctrl-p) and to move down (ctrl-n) key bindings are used. When I am using auto-complete mode, a box with suggested words is pop up. On there when I press ctrl-p or ctrl-n ...
0
votes
1answer
42 views

Adding header to a org-mode tangled file

I am generating source code files from an org-mode file using org-babel-tangle. How do I add headers to the files e.g. for python # This is a generated file do not edit for emacs lisp similar ...
5
votes
4answers
785 views

Copy/paste between SSH terminal Emacs and macOS

Suppose you are working in macOS, and you decide to SSH into a Linux box and fire up terminal Emacs. How do you copy and paste between macOS and your SSH terminal-Emacs? Copying and pasting between ...
4
votes
4answers
2k views

Use the command key in Terminal on OSX?

Is there a way to use the Apple command key in Emacs in the terminal? It would be nice to expand the set of easy to get at key bindings I can use.
1
vote
1answer
29 views

Autocomplete files/paths while typing in any mode or fundamental mode, like bash does at prompt

After opening up an empty file named ~/work/aback using emacsclient -nw ... . I type in ~/huTAB in the body of the file. how can I get autocompletion candidates shown? In this case, any files/...
1
vote
1answer
32 views

calculate the sum of the muplication of 2 columns in org table

I have a org table: | a | b | c | |---+---+---| | 1 | 2 | i | | 3 | 4 | j | |---+---+---| | 4 | 6 | | I want to multiply columns a and b and sum them up (except last row: 1*2+3*4) and put into the ...
0
votes
0answers
15 views

Creating a local advice for a function

I want to slightly modify the behaviour of a function, old-function whose source I cannot modify. I can do that simply by (defun my-new-function (old-fn a b c) (if (evaluate-my-condition) (...
0
votes
0answers
18 views

pdf-tools view bottom of one page and top of another page simulatenously

Does pdf-tools have scrolling where I can view the bottom half of one pdf page and the top of the next page? Right now, my installation simply jumps to the next page and I cannot view two pages ...
0
votes
1answer
17 views

Emacs 26.3: Weird frame title issue with KDE

I recently switched to CentOS 7.7, KDE 4.x, and Emacs 26.3. Previously, I was using GNOME and a much older version of Emacs. Before, whenever I opened Emacs, the titlebar of a lone Emacs window was ...
1
vote
2answers
278 views

How to make emacs automatically spell check all visible text?

When flyspell is enabled it doesn't show spelling errors on all visible text (like most text editors that support spell checking). When moving the cursor over text, misspelled words become underlined....
0
votes
1answer
17 views

Customizing f6-key for fast “M-x imenu” + “Pr” + Enter

I wish to customize my f6key so it corresponds to a fast way of doing M-x imenu, then Pr RET. I've added the following to my ~/.emacs: (global-set-key [f6] 'imenu) Then I've tried to add different ...
0
votes
1answer
20 views

Org-Babel Javascript error

I am having trouble getting the simplest Javascript source block in org-mode to run. #+begin_src js console.log("Hello"); #+end_src I always get this error: /tmp/babel-8kqQwQ/js-script-...
1
vote
1answer
51 views

Org Reveal : Tabular fragments

I'm using org-reveal to make a presentation. I want to have elements in tabular form appear sequentially but in column-major order. I know you can put :frag property-markers for gradual appearance....
0
votes
0answers
9 views

How to use spell checking in PO mode for gettext translations files?

I've tried function I use my my Markdown and Polymode when editing my Jekyll blog with po-mode but it don't work at all: I have code like this: (defun lang (lang) (interactive "sLanguage: ") (...
0
votes
0answers
24 views

org mode, html export of LaTeX equations with tikz support

In my org-mode file I have some LaTeX equations using tikz and tikz-cd packages: #+TITLE: Mixing tikz and equations * An example \begin{equation*} \begin{tikzcd} A\arrow[yshift=.7ex,r,"f"] \arrow[...
0
votes
1answer
61 views

org-agenda not showing any todos

No items are showing when I load the agenda view. When I press C-c a, the agenda view menu comes up fine. But hitting a brings up an empty list, and so does t. M-x describe-variable RET org-agenda-...
1
vote
1answer
30 views

Org-Babel Unable to Tangle to Write-Protected Folders?

I'm trying to move my OS configuration over to org mode, and in the process I'd like to be able to tangle to write-protected directories like /etc Unfortunately, tangle doesn't seem to work whenever ...
0
votes
3answers
34 views

Default argument when nil is provided

I'm writing a function which wraps org-export-as for use in html conversion of a file. In this function, I define the options for org-export-with-toc, org-export-with-section-numbers, and org-html-...
4
votes
4answers
559 views

How to replace the default contents of the scratch buffer with the contents of a file (if it exists)?

I would like emacs to check for a ~/emacs.d/scratch.txt and use it's contents instead of the default message when emacs starts. How can this be done?
2
votes
1answer
58 views

Bind keybord shortcuts to a MIDI keyboard?

I'm exploring the possibility of using a programmable keybord like this one: https://storefront.expertkeys.com/startseite/28-expertkeys-ek-20-usb-tastatur-0700587547911.html to expand and simplify ...
2
votes
1answer
377 views

CIDER, how to fix “No cljs REPLs in current session” error

I'm editing a ClojureScript file, and I have a working ClojureScript REPL in another buffer. But when I try to evaluate a form in my file ui.cljs, with C-c C-c, I get a beep an a message in the mini-...
0
votes
2answers
34 views

org-agenda-files variable is getting reset each time I launch emacs

Each time I launch Emacs, org-agenda-files is reset to nil. I can C-h v org-agenda-files, which confirms that the value of the variable is nil. I have the following in .emacs.d/package-init.el: (...
0
votes
0answers
14 views

disable syntax highlight on inactive windows

I got the following code for highlighting inactive and active windows with different background color. How do I make so that inactive windows have no syntax highlighting, only the active window has? ...
0
votes
0answers
37 views

Org export dispatcher missing options

I'm running Emacs (Emacs version: 25.2.2; org-mode version: 9.2.6-4-ge30905-elpa) on Linux Mint Ubuntu. If I try to export my org file or subtree (C-c C-e) I get the dispatcher buffer without any ...
0
votes
0answers
6 views

org agenda empty after org-mac-iCal import

After some struggle I got it to work for a day. I was able to see a combined agenda with todo's and calendar appointments correctly. The next day it stopped working, and the agenda file appears empty....
0
votes
2answers
63 views

How to Redefine Meta Key to Use Esc Key Only and Allow Using Alt Key for Another Purpose

I am using ubuntu 18.04. The Esc-v scrolls up by a page as expected (classical Emacs command with Esc being the meta key). But I want to use Alt-v as a "paste command". In other words: can I decouple ...
3
votes
1answer
50 views

How to add a right-aligned menu item to menu-bar?

I hide the window title bar, so I can't use the close window button in the top right corner. I want to add a menu item with no drop-down menu on the far right side of menu-bar, which can only be ...
2
votes
1answer
24 views

Escape Swiper even when match is required

Swiper automatically moves to the next location that matches your current input. You can press RET to return to the main buffer when the search is successful. When you type in a word that does not ...
0
votes
0answers
21 views

Org mode how to continue list on previous heading after subheading

Please see in the image how I expect to put down the information in an org file. Sub-heading 1 has some list items which are collapsed, after which I would like to continue the list at the previous ...
0
votes
4answers
50 views

Nesting conditionals, consolidating functionality in elisp

Working in an org-mode file, I have this table #+tblname: site-charac-matrix | | glaze | orn | color | thin | |---+-------+-----+-------+------| | A | 0 | 1 | 0 | 0 | | B | 1 | 0 ...
0
votes
1answer
45 views

How do I run an external command on an org mode source block?

I'm writing a screenplay using Fountain mode. My org file is set up so there are multiple screenplays in a given file, for example * Number one! #+begin_src fountain INT A PARK IN SAN FRANCISCO ...
1
vote
1answer
42 views

Exporting Org document to HTML/PDF *without* opening Emacs

I am using Org mode to build a website that contains my notes on various topics, which I read on my phone on the way to work. To introduce more automation into my workflow, I would like to have ...
0
votes
0answers
8 views

Color coding for org-mode structure template breaks at three levels of embedment

As indicated by the title above, the color coding for org-mode structure templates breaks at three levels. Any way to fix this?
3
votes
2answers
464 views

Prevent emacsclient from blocking other instances

I use emacs in the terminal, typically with many emacs instances running at once in different tabs. This is a perfect use case for emacsclient, but it has always had various glitches that have stopped ...
28
votes
3answers
6k views

How to change Emacs windows from vertical split to horizontal split?

Window A ++++++++ Window B Is there a way to switch to Window A : Window B Is there a way to switch view without closing windows?
2
votes
1answer
29 views

Equivalent of helm-ag-edit with ivy

I've been trying to switch to Ivy from Helm for the past little while. One feature I miss (and because of this I keep helm installed) is the ability to run helm-ag, and then to hit C-c C-e so I can ...
0
votes
2answers
21 views

How to correctly configure Flow backend for LSP mode?

I'm using spacemacs @develop (branch). I can't use lsp and lsp-ui. In vscode everything works (using flow lsp mode). With company-flow I can also make it working. When opening a .js file with // @...

15 30 50 per page
1 2 3 4 5 363