All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
21 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 ...
0
votes
1answer
37 views

How to disable semantic highlighting in lsp-mode?

Language server mode has a variable for semantic highlighting lsp-ht, I would like to disable all syntax highlighting in lsp-mode, is this possible. (setq lsp-enable-links nil) (setq lsp-enable-...
0
votes
0answers
31 views

Howto define TAB and S-TAB in keymap of custom mode

I'm trying to bind the TAB and shift TAB keys to a custom readonly buffer mode. The skeleton of the mode looks like this: ;; 8< --- exmode.el ------- (defun exmode-i () (interactive) (message ...
0
votes
1answer
49 views

Expand abbrev on two spaces

I want to expand abbrev when I type two spaces instead of one. Is there any way to do it? Simply adding a space to the abbrev pattern doesn't work -- the abbrev is still expanded on the first space.
1
vote
1answer
25 views

How to stop lsp-mode converting C/C++ includes into buttons?

When lsp-mode is enabled all headers become clickable (draw as buttons), underlining them making them slightly harder to read. I don't need this since I can have a key bound to go to the header. Is ...
0
votes
0answers
20 views

How to adjust image size of an org-babel output permanently?

I know I can add html or latex attributes under the #+result: block after executing the block, but when I re-evaluate the block, it is removed.
0
votes
1answer
26 views

Semantic way to export Org subtrees inside arbitrary LaTeX environments

I would like to begin taking math class notes in Org mode -- I have thus far used plain LaTeX, but I have found Org has the potential to be much faster for real-time scribing. I already made a custom ...
0
votes
1answer
31 views

Why does calc subscr work with index vectors in org tables?

In my org table I use the next formula to sum rows 1,5,7 of column 6. | | Start date | End date | Task | State | Duration (hours) | |---+------------------+------------------+...
3
votes
1answer
68 views

What is the point of the Ctrl-M binding? Can I overwrite it if I use the Return key?

Looking for a new convenient keybinding for a frequently used command I stumbled upon Ctrl-M which is the same as Return/Enter. What is the point of this binding? Can it cause some problem if I ...
0
votes
1answer
20 views

Not work “subscr”: Symbol’s function definition is void: [closed]

Emacs 26.1, I try to use function subscr Example: subscr({a,b,c,d,e,f,h},{1,2,3}) But I get error: eval: Symbol’s function definition is void: {a
1
vote
1answer
58 views

How to execute one line in the .emacs file?

To test a function definition, for example : (defun count-words-buffer () (let ((count 0)) (goto-char (point-min)) (while (< (point) (point-max)) (forward-word 1) (setq count ...
0
votes
0answers
19 views

how do I find a file with projectile when I know only parts of its “filename path”

I have projectile-find-file installed, it dynamically narrows the autocompletion list as I type characters. Supposed I'm looking for this file: components/frontend/app/views/frontend/press_releases/...
0
votes
1answer
35 views

How calculate sum of only desire rows?

Windows 10, Emacs 26.1 here my org table: | | Start date | End date | Task | State | Duration (hours) | |---+------------------+------------------+----------+-----------+-----...
1
vote
1answer
30 views

How does emacs flash its icon on the windows taskbar?

Sometimes when I run a process if there is an error during the process the emacs icon on the windows taskbar lights up, so if I'm in an other app I can see something happened there. I'd like to use ...
0
votes
0answers
15 views

Org mode #+PROPERTY: P_ALL Values doesn't work

I recently started using Org as my planner. While I was trying to setup PROPERTIES, I found the manual says: If you want to set properties that can be inherited by any entry in a file, use a line ...
2
votes
2answers
36 views

Not scape braces in LaTeX org-mode

I am writting a LaTeX document using org-mode, and there is a section where I want to include a proof, which has the following code. #+LaTeX_HEADER: \newcommand{\dem}[1]{\textcolor{gris}{\small{...
0
votes
0answers
13 views

Org mode export to latex with adjustbox

I have some document, in which I make use of tables. These tables are sometimes a little too wide to fit on a page and will overflow the page margin, when I make the PDF file from the Latex code, ...
3
votes
1answer
47 views

magit: how do I turn off the -S (--gpg-sign) argument when committing? [closed]

I forgot my GPG key at home and want to check in the code until I am home and can amend/resign the commits. Unfortunately I can't seem to figure out how to disable the --gpg-sign= argument in the ...
0
votes
1answer
16 views

Understanding why lsp-scala is not giving completions

I have installed lsp-mode, lip-scala, lsp-ui, company-lsp and many other packages. When entering scala code, I often get popups to complete the method/class/variable name, which also add the ...
1
vote
1answer
21 views

Append to a list inside an alist for custom find-file behaviour

cc-other-file-alist is part of find-file that looks something like this. (("\\.cc\\'" (".hh" ".h")) ("\\.hpp\\'" (".cpp")) ;; more such entries ) This is an alist where I'd like to append an ...
1
vote
0answers
33 views

Truncation of text in Emacs terminal emulators

When I log in to the cluster using shell or eshell, I get the following message: 2018-04-11: The MEM1024 node is now back in the queue. The hardware had to be completely replaced, which means there ...
1
vote
3answers
57 views

Change TODO keywords of all nodes in an Orgmode subtree in Elisp

Imagine we have a tree like this: * TODO Read X book ** TODO Chapter 1 ** TODO Chapter 2 I'd like to mark all nodes in the tree as DONE: * DONE Read X book ** DONE Chapter 1 ** DONE Chapter 2 What'...
1
vote
1answer
36 views

Why can't Emacs find gfortran on my Mac?

I have tried to compile a simple helloworld.f95 on my Mac, using emacs. The root of emacs was set in the directory containing helloworld.f95. I used the following commands M-x compile gfortran -o ...
1
vote
1answer
40 views

Map each element of a list over every element of another list

Let's assume I've got two lists: ("A" "B" "C" "D") and ("+" "-"). I want to concatenate each element of the first list with every element of the second to get ("A+" "A-" "B+" "B-" ... ). Is there a ...
1
vote
1answer
50 views

Propertize org-agenda-overriding-header

Wondering how would one go about applying a face to the agenda header. I tried it with the below code, but it does not apply the face. It does not generate errors, but it won't apply a face. I am ...
2
votes
1answer
41 views

mu4e: how to stop the unarchiving of entire threads when new message arrives?

The issue: Say a new message arrives in my inbox that is a reply to an existing thread/chain of emails that I've archived. mu4e will move the entire thread out of the archive and back into my inbox. ...
2
votes
1answer
56 views

How to generate directory structure out of org-mode outline?

I want to create the directory tree structure like this out of org-mode outlines. Dir1 Dir-1.1 Dir -1.1.1 Dir-1.2 Dir 2 Dir-2.1 ...
1
vote
1answer
18 views

Search within column or rectangle

Is there a simple way to search within the current column or within a rectangle? I am navigating a CSV file and would like to find the value "10" in a particular column. Searching the entire file is ...
1
vote
0answers
32 views

Why doesn't the window begin and end update after `outline-show-all`?

I'm using this test code. (defun +outline~show-all (orig-fn &rest args) "Show all." (let ((beg1 (window-start)) (end1 (window-end)) (beg2) (end2)) (apply orig-fn args) ...
0
votes
0answers
18 views

Company-mode with clang backend company-mode-arguments problem

I'm getting the following error when using company-mode with clang as the backend: https://github.com/company-mode/company-mode/issues/659 I found this page for help on how to specify your projects ...
0
votes
2answers
85 views

How do you create an org-ref harvard style in-text citation - with a page number - using shortcuts?

There are only really two kinds of citations I need to have in my paper (Lewis, 2001) (Lewis, 2001:54) where 54 is the page number After a ton of googling I managed to find out that it's possible ...
0
votes
0answers
11 views

What is the correct syntax for the exclude and include options in org-publish?

Does the :exclude and :include option of org-publish-project-alist allow multiple patterns? Do they involve multiple or regexes or does each pattern require its own separate :exclude or :include line?...
0
votes
1answer
24 views

comment-kill for entire region

Is there a similar command to comment-kill that kills all comments in a given region and saves them to the kill ring?
1
vote
1answer
35 views

View file diffs in merge commits

When I open the commit view for a regular commit in magit, I can see the diff for each file. When I open a merge commit, I can only see a summary of the number of lines that were changed. Is there a ...
0
votes
1answer
36 views

Maximum total length for commit message with Magit

I know that it's possible to limit the length of the commit message's first line with git-commit-summary-max-length, but is there a way to limit the total number of characters in a commit message?
0
votes
0answers
5 views

Insert query into SQL buffer after “sql-send-region” call?

I would like to insert the query in the SQL buffer before the result after a call to sql-send-region. Is there an easy way to achieve this?
0
votes
1answer
20 views

On one specific machine, after some time, new emacsclients can no longer connect to running daemon/server

A strange problem. I run Emacs across a number of machines, with more-or-less a shared configuration. However, on one specific machine, after some time I am no longer able to launch new emacsclient ...
0
votes
0answers
14 views

Record a keyboard macro in Evil Mode to a register with another keyboard macro inside it

In vim, one can type qw to start recording a macro to register w, then record the macro, then finish recording to w by pressing q again. It is then possible to record another macro by typing qe, ...
4
votes
1answer
66 views

Select a word in a PDF by double-clicking on it (with pdf-tools)

I use pdf-tools in Emacs to view PDF documents. I would like to be able to select words (mark their region and then copy them to the kill-ring) in the PDF by double-clicking on them. Is there a ...
1
vote
1answer
41 views

Syncronize on save

Is there any extension or easy way to configure a feature like the Visual Code Studio's extension SSFTP? The ideal behaviour should be like the following one, by using ftp or sftp: Allow a manual ...
1
vote
1answer
9 views

visual-line-mode-hook not runnng on mode exit

I would like to have whitespace-newline-mode enabled every time visual-line-mode is enabled, and disabled correspondingly. The documentation on "visual-line-mode-hook" says "Hook run after entering ...
0
votes
2answers
29 views

Looking for hex values of the default colorscheme

I don't know if it's the default colorscheme in every version, but the version I'm using, Emacs-26.3 downloaded from GNU ftp mirror, has this colorscheme by default. I don't know how to get the values ...
1
vote
2answers
93 views

Problem with giving inputs to a function programmatically

Some programs take user inputs, for example by calling the interactive function `sunrise-sunset', two arguments are taken from the user. Assume that the inputs are 0.0098 and 51.4934 (these are ...
3
votes
2answers
116 views

How can I make python3 the default in Emacs 25.2.1?

I do have python3 on my laptop. $ sudo find / -name "python3" | python3-locations.org (partial list of locations) /usr/local/bin/python3 /usr/lib/python3 /usr/share/doc/python3 /...
1
vote
1answer
41 views

AucTeX not loading beamer class

When trying to use the LaTeX document class beamer with AucTeX it does not load the template. Emacs reports Symbol’s value as variable is void: LaTeX-hyperref-package-options-list after loading ...
0
votes
0answers
31 views

How to modify `org-structure-template-alist` after org-mode 9.2?

I want to append \n to specific easy-template before 9.2 I could: (setq org-structure-template-alist '(("s" "#+BEGIN_SRC ?\n\n#+END_SRC\n") ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE\n") ...
0
votes
0answers
25 views

Is there a pexpect like automation for serial-term or term-mode

Is there something similar to pexpect that can be used to automate a tty connection running inside emacs, i.e. in term-mode or on top of serial-term ? I'd like to automate some repetitive tasks like ...
0
votes
1answer
23 views

Inline elements of variable list value in rx() macro call [duplicate]

Is there a more compact way to make use of the rx macro in cases where we want to inline a list of strings from a variable? Such as (defconst c++20-new-keywords-list (list "char8_t" "import" ...
0
votes
0answers
11 views

Emacsclient Not Opening Due to Dialogue

This is something that's vexed me for a quite a while, but has got a lot worse now that I'm using lsp-mode. In fact, I'm not sure if it is a bug in lsp-mode, Emacs or intended behavior: Say that you'...
0
votes
1answer
76 views

Running lsp-mode with Python using the pyls from the virtualenv of my project

I wish to run LSP using the pyls from the virtualenv of my project. I don't have pyls installed globally (only in the local virtualenv). I found this snippet online: (lsp-define-stdio-client lsp-...

15 30 50 per page