All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
3 views

How do you automatically enable writeoom-mode when org-mode starts?

I want to enable writeroom-mode whenever I startup org-mode because I don't really ever want writeroom-mode to be disabled if I'm using org-mode.
0
votes
0answers
6 views

company-mode doesn't work on latex environment

I've installed the company package in order to get an auto-completion functionality. It works well in my ESS environment, but no in latex. In fact, no completions are showed in latex buffers when I ...
0
votes
0answers
19 views

How to use one keybinding to execute switch-to-buffer and minibuffer-complete at one time?

Step 1: Press M-x Step 2: type switch-to-buffer , Press RET Step 3: Press TAB I need a keybinding to complete these three steps at once. Step 2 can be replaced with "type imenu , Press RET" , ...
0
votes
0answers
3 views

Attaching files in mu4e from the clipboard

I use mu4e for email. I can attach a file to a new message with drag-and-drop or with dired (as in these directions from the manual). I would like to code the same behavior as Mail: in the Finder, I ...
0
votes
1answer
19 views

How can I make emacsclient use an existing window in the current frame?

I'm on MS Windows, if that makes a difference. My desired behavior: There is only one frame visible at any time. Visiting a file should use an existing window in that frame. (This is the default ...
0
votes
0answers
12 views

Config is broken when I use load-user-file

This is my config for org-babel: (use-package org :mode (("\\.org$" . org-mode)) :ensure org-plus-contrib :config (org-babel-do-load-languages 'org-babel-load-languages ...
0
votes
1answer
37 views

In gui, font looks thicker than usual

I started using Emacs a few days ago and facing the problem. I use "M+ 1mn" for programming so I set this for Emacs. But It looks thicker than usual.(in Geany, VSCode, Xfce Terminal ...) How do I fix ...
0
votes
0answers
12 views

Elpy doesn't recognize I have virtualenv installed

I am trying to get started with elpy but any python file I open elpy will complain and say eldoc error: (error Elpy necessitates the ’virtualenv’ python package, please install it with ‘pip ...
0
votes
0answers
9 views

Filter Tasks with Certain Tags in Day Agenda View

Objective: In daily agenda, when at office, do not show tasks that can only do at home. That is filter tasks with "@office" tag in daily agenda. Solution 1: Automatically removing context based tasks ...
1
vote
0answers
21 views

How to open two files in two frames on startup?

Here's what I'm trying to make happen: on startup, I want emacs to split vertically into two windows displaying two different files, with my to-do list on the left side of the screen and my notes on ...
0
votes
0answers
24 views

Set font family for comments

In coq mode I have ligatures being used: instead of "fun", it shows λ in the programming code. But in the comments lambda transformed into a character I can't even copy, so I'll attach a screenshot: ...
0
votes
0answers
9 views

How to show waka mode time in emacs mode line?

I setup the waka time to monitor my usage successfully. However, the mode line only shows "waka" and nothing on the amount of time I spent using Emacs. To get the statistics, I have to login to Waka ...
1
vote
0answers
28 views

Disable ispell when using Tramp

In my Spacemacs, I enabled the spell-checking layer which enables ispell. I noticed that my Tramp connection is very slow, and after debugging, I found that one of the causes is ispell: 02:07:20....
0
votes
0answers
28 views

Trouble binding C-return: C- must prefix a single character

This is what I have: (add-hook 'magit-status-mode-hook (lambda () (local-set-key (kbd "<C-return>") 'magit-diff-visit-file-other-window))) Opening a magit-status buffer fails with "C- ...
0
votes
1answer
48 views

How to perform query-replace inside mathematical expressions in latex

Inspired by this answer, I have written the following function to perform a query-replace inside a math environment, but it does not work. Edit. If you execute the function, the query-search tries to ...
0
votes
1answer
24 views

How to get all full path list by a folder name?

I want to get all the full path by a folder name called autoload, in my config i had split it like this file structure. ├── init.el ├── packs │ ├── +completion │ │ ├── ivy │ │ │ ├── ...
0
votes
0answers
24 views

List commands / keywords in a directory sorted by frequency of use

I want to do some refactoring. For that purpose I want to list all keywords grouped and sorted by their frequency of appearance. That could help me get ideas, which repetitive code I could start ...
2
votes
1answer
40 views

is there a way to sort only on second level headlines in org mode?

is there a way to sort only on second level headlines in org mode? i am outlining a novel with top level headline being the chapter number and the second level headline being the timeline of the ...
1
vote
0answers
20 views

Intelligent downscaling for inline images

I'd like to achieve the following intelligent scaling of inline images: If image-actual-width > 800: scale it down to 800 Else: display image without any further scaling Doing (setq org-image-...
0
votes
0answers
6 views

Aquamacs: C-x 4 b switches to a different desktop if buffer is already displayed

In Aquamacs, I frequently find myself being yanked out of my focus, concretely and figuratively, if I try to view a buffer which is already displayed in a different frame, often on another desktop. ...
0
votes
1answer
37 views

See if org-mode heading is collapsed

I just need a function that will say if a heading is collapsed or not. Need it to ensure an open heading, because org-cycle, well, cycles and it appears there are no good alternatives (e.g. org-show-...
0
votes
1answer
21 views

automatic indentation with space like visual studio

Is there any package that covers indentation with space like visual studio? like, if(a==b) ==> if(a<space>==<space>b) for(int i=0;i<N;i++) ==> for(int i<space>=<space&...
0
votes
0answers
26 views

Update and best practice for reading mailing lists [on hold]

Just recently I switched to emacs. More and more, emacs become my one-stop concerning all activities dealing with text reading/editing. Now I am at the point where I also want to integrate my email ...
0
votes
0answers
12 views

Opening a new empty buffer results in flycheck returning suspicious state error

When I open a new buffer with a .el extension, I get the following error message from flycheck: Suspicious state from syntax checker emacs-lisp: Flycheck checker emacs-lisp returned non-zero exit code ...
0
votes
1answer
20 views

magit-checkout does not update current buffer

When I checkout an existing remote branch, the current buffer remains on the old branch. However if I open a new file, that new file is on the checked-out branch. My current workflow is this: ...
0
votes
1answer
10 views

How to add a value for CC or reply-to in each new message

I use mu4e. I would like to add a hook called with a new message, such as adding a certain value in CC or in Reply-to. I found no guidance online and no functions starting with mu4e and ending with ...
0
votes
0answers
59 views

list-packages has become very slow [duplicate]

After upgrading emacs from 24.4 to 26.3 on Windows, everything works fine except for one thing: the list-packages window has become horribly slow. Like, the cursor moves one second after the keystroke....
0
votes
0answers
22 views

customized week label in org-mode agenda view

Is it possible for org-mode agenda view to display a customized label for the week, in addition to the week number included by default? For example, the agenda for the current week shows: Week-agenda ...
0
votes
1answer
9 views

Any date entry in the text will be captured in agenda view

I guess this is best explained by screenshots. I have one entry like this: then I run M-x org-agenda RET a RET and I get something like this: Problem is, I do not want this timestamp to show up in ...
0
votes
0answers
34 views

Using org-capture to record an appointment with a time range

I would like to use org-capture to quickly store appointments in a journal file, and add a timestamp so that the appointment appears in my agenda. I'm using the following template: ;; excerpted from ...
0
votes
0answers
21 views

Performance issues using go-eldoc

The Problem Performance issues when point is inside/on a symbol go-eldoc/gocode has info for. Based on my interaction with emacs I would guess that the problem has something to do with gocode being ...
1
vote
1answer
38 views

Lexical binding in a process filter

The code constantly prints server-process: nil instead of the server process name: -*- lexical-binding: t; -*- (let* ((port 1234) (server-process 'something)) (setq server-process (...
2
votes
0answers
30 views

Dynamically hide lines indented more than current line

Is there a way to dynamically hide lines that are indented more than the current line? For example, if I am looking at this file { "a": 1 "b": { "c": { "d": 2 } } } and I am on ...
0
votes
0answers
19 views

Proper way to use use-package and hooks on Auctex package

I'm learning how to use use-package, and I've some troubles to make it work with the Auctex packages (all the other packages are fine). I made my own function configure-viewer that basically adds a ...
0
votes
0answers
16 views

emacs display anomaly in Jupyter notebook terminal

When I use emacs in Jupyter hub terminal to edit a file, emacs seems to always insert an extra sequence of characters: 0;276;0c before the actual content. Also, after exiting emacs, the terminal ...
0
votes
0answers
8 views

JSON multiline String with line wrapping?

I have a JSON file with an object containing a long String with linebreaks \n like so: { ... "subtitle": "**Thesis:** 1-Loop Anomalous Dimensions of 4-Quark Operators\n\n Specializing in ...
0
votes
0answers
40 views

How to get a list of all folder names under a folder?

I have a folder structure like this,i want get a list that all folder names in pack folder. Then traverse the list and load them ├── pack │   ├── completion │   │   ├── company │   │   │   └── pack-...
0
votes
0answers
13 views

Sum column Duration in all rows that in column Task = “T-339”

Windows 10, Emacs 26.1 | | Start date | End date | Task | State | Duration (hours) | |---+------------------+------------------+----------+-----------+------------------| | # |...
0
votes
1answer
26 views

Write a function that runs another function after adding a hook

I want to run some function f after adding a hook to a mode and after running f remove the hook that I added, returning the result of f if there is one. Here is a non-working version that I hope ...
0
votes
0answers
17 views

Org-mode - Custom agenda: include subheaders of scheduled headers

I try to use org-mode for scheduling weekly tasks in my university. Say I have this timetable: * Mon: ** Subject A: *** Ex. 50 *** Prepare presentation ** Subject B: **...
2
votes
1answer
61 views

Mimic human typing with emacs

I want to record some typing on a screen video using emacs and I'm wondering if there is something available in emacs to mimic human typing. I imagine I feed it a line(region) of text and it is ...
0
votes
0answers
19 views

use-package org-mode :hook is being ignored

I'm currently running this version of Emacs: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-04-11, modified by Debian I'm attempting to use use-package to configure the ...
1
vote
1answer
17 views

How to set schedule and deadline for entires being inserted via org-capture template file?

I'm trying to leverage the power of org capture templates. There are a few tasks I know I will be scheduling on particular dates of the month. Setting their schedule and deadline in the capture ...
1
vote
0answers
16 views

company doesn't pop up completion list automatically

I'm trying to get company mode to automatically trigger the pop-up with a list of possible completion. Unless I'm doing this wrong this is not the default behaviour? Current I have to run M-x company-...
1
vote
0answers
18 views

Org-mode results verbatim not working for Scheme code

I have the following source block of Scheme code: #+BEGIN_SRC scheme :results value verbatim append (define shift (lambda (list-with-sublists) (cond [(pair? (car list-with-sublists)) ...
0
votes
3answers
44 views

use-package can't load package at startup

When I start Emacs I get the error message Error (use-package): Cannot load counsel But when I open init.el in a buffer and run eval-buffer everything works fine. What I'm doing wrong? My Emacs ...
1
vote
1answer
14 views

With “japanese” input method, unmap kanji selection via the spacebar?

In emacs-26.1, I am enabling the Japanese input method as follows ... (toggle-enable-multibyte-characters 1) (set-language-environment "Japanese") (set-input-method "japanese") (setq coding-system-...
0
votes
0answers
18 views

Helm source from a hash-table

I want to build a helm-source from a large hash-table, is there a smarter/faster way to to this, than the way described below? (setq tab #s(hash-table size 16 test equal ...
3
votes
3answers
92 views

Get Emacs to jump to the start of a word after isearch

If I use isearch to search for the word "accommodating" in my document, I have to type acc before the cursor jumps to the word. When I press enter the cursor is on the the second "c" as in ...
0
votes
1answer
19 views

org-habit : time-dependent habit

For instance, I have the following habit "sleep before 23h" ** TODO sleep before 23h SCHEDULED: <2019-09-07 sam. 23:00 +1d> :PROPERTIES: :STYLE: habit ...

15 30 50 per page