All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
25 views

Function to find a file or open a URL depending on argument?

Q: in there a function that can find a file or open a URL as needed? I have a string that can be either a) a local filename, or b) a URL. Is there an existing function that I can call on the string ...
0
votes
0answers
24 views

Putting a framebox around enumerated items

I would like to put my enumerated items in a framebox with rounded corners. I can do it with LaTex. But I would like to do it in emacs org document. How can I do it ?
1
vote
1answer
26 views

Help? - Freeze up to 10 seconds happening on windows when exiting (kill-emacs) when desktop-save-mode and back-button-mode are enabled

I've spent a full working day trying to somehow resolve this, no luck, so I'm turning to this place hoping for help. Recently I started experiencing freeze of something like up to 10 seconds when ...
-1
votes
1answer
26 views

I-search - case sensitive

windows 10, emacs 26.1 When I use I-search, then Emacs ignore case sensitive. but I need case sensitive I-search
2
votes
1answer
58 views

Capture todos to the last Tasks heading

I have such a diary structure *** 2019-07-28 Monday **** Tasks *** 2019-07-29 Tuesday **** Tasks Desire to capture todos under the Tasks of latest day (setq org-capture-templates '(("t" "Todo [...
0
votes
0answers
58 views

org-mode function definition is void

I install org-mode using use-package via the orgmode.org elpa archive. In the past month I've received Symbol’s function definition is void messages such as: org-capture-select-template: Symbol’s ...
1
vote
0answers
14 views

tide-mode in org-edit-src-code

I want to activate tide-mode when using Javascript soruce code blocks, following this it works well with indium: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-js.html But I want to use ...
0
votes
0answers
28 views

Org-Ref: How to custom bibtex-completion-fallback-options

How do we customize bibtex-completion-fallback-options in init.el? The following code gave rise to the error below: (add-to-list 'bibtex-completion-fallback-options `("NTU Library 台大圖書館 ...
1
vote
1answer
14 views

php-mode overwrites c-basic-offset customization, how can I set it to my preferred value?

GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) PHP-Mode: https://github.com/emacs-php/php-mode, Version: 1.21.1 I customized c-basic-offset to 2. When I open a php-File, php-mode is ...
0
votes
0answers
24 views

How to setup company-mode complete to list only words in the open buffer?

How to configure company mode to do a simple completion using words from the current buffer? (all open buffers would be handy too) More sophisticated completion is fine, but it may show too many ...
1
vote
1answer
24 views

.emacs complains about undefined functions/variables event after byte-compile

I use use-package and pulled in the treemacs package with the default settings. Then I byte-compiled my .emacsfile. But I still get a warning saying: the following functions might not be defined at ...
1
vote
3answers
42 views

SMIE Indenting Arguments and Blocks

This is closely related to a previous question I asked here: SMIE Basic Identation and Block Example However, it is sufficiently different (and already big enough) that I might as well ask it as a ...
1
vote
1answer
37 views

Rebind just `C-c` to some command

I'd like to rebind C-c to eshell-interrupt-process, so I don't need to press C-c C-c. I tried the naive (local-set-key (kbd "C-c") 'something) And similar commands but when I press C-c emacs waits ...
1
vote
0answers
37 views

convert regular compilation-mode output to inline view

It would be nice to show the info, warnings and errors from a regular compilation-mode buffer inline in the source code. I checked to see if flycheck supports this but it appears no. Writing a custom ...
4
votes
3answers
281 views

Use cases for M-0 & C-0?

The purpose of digit-argument and how to use them is described in Emacs manual. Also read a question that asks how to disable them. Even though have not disabled them, I have changed M-1, M-2, M-3 '...
0
votes
0answers
24 views

Redirect diary to other directory

The Emacs diary is configured in ~/diary as the default. I want separate the configuration and my personal notes. How could redirect the system's diary to other directory?
0
votes
1answer
44 views

Org-ref with biblatex - is it feasible or should bibtex be preferred?

I am contemplating setting up org-ref to use within org mode for drafting scientific texts. However, as I go through various blogs etc. on the subject, it seems that org-ref is tailored for the ...
1
vote
1answer
44 views

How to make strings literal when formatting?

When string formatting is supported, it's sometimes possible pass in a string which could contain a percentage symbol which would then be interpreted. For example, this frame-title-format has a bug ...
0
votes
0answers
20 views

How to filter a dynamic block column view by tags with a :match selector?

I'm trying to filter an org mode heading by tag in a dynamic block, but the match syntax is not quite working out. Example: #+COLUMNS: %25ITEM %TAGS * Something ...
0
votes
0answers
17 views

Helm expands ~. Is it possible to expand other “aliases” as well?

Apparently anaconda-mode provides eldoc support on remote files, but it kinda breaks TRAMP if the remote file name contains an ssh alias (TRAMP will keep reconnecting over and over). It is ...
0
votes
1answer
38 views

How to define a variable in a custom function?

I have a function for generating a new text file. The file is named automatically from date and time, following this format: yyyy-mm-dd--hh-mm-ss.txt. However, I also need my function to insert the ...
0
votes
1answer
22 views

Making resize-mini-windows buffer-local while locally let-bound

Upon striking C-x s (save-some-buffers) or C-x C-c, it report errorsin mini-buffer Making resize-mini-windows buffer-local while locally let-bound. Search the above errors but return no helpful ...
0
votes
0answers
13 views

“<Hangul> is undefined” error on space key press

I'm running Emacs 26.1 without any "strange" configuration: a bare bone Ubuntu 19.04 emacs package with few packages installed from elpa or melpa. I have the following issue: when pressing space bar ...
0
votes
0answers
42 views

Loading Spacemacs init.el post-Aquamacs

I have been working with Aquamacs and I would like to take Spacemacs out for a spin. I cloned .spacemacs and created an empty spacemacs file to store my configs later: git clone https://github.com/...
2
votes
2answers
40 views

problem with starting emacs via emacsclient

I have no problems starting Emacs from a terminal, while if I start it from the desktop (I have a desktop file containing emacsclient -ca '') Emacs starts with a putt-ugly font (see below a screenshot)...
3
votes
2answers
42 views

SMIE Basic Identation and Block Example

I've tried for a while to create a simple major mode that uses SMIE to perform navigation and indentation, but it seems like even the simple examples that I've found seems to break quite easily. The ...
0
votes
0answers
13 views

‘python-shell-completion-native-enable’ was t and “jupyter” is not part

Upon runing the following codes with ob-ipython #+begin_src ipython :session alinbx :results output num_friends = [100, 49, 41, 40, 25, # ... and lots more ] print('...
0
votes
0answers
22 views

Jedi EPC server - make client process fails

Recently my Emacs/Python setup stopped working as it had done previously without any problem. I have the following defining where my virtual environments are in my init files... (setq venv-location (...
0
votes
1answer
26 views

How to save clipboard or (car kill-ring) as string

OS Debian GNU/Linux 7 emacs-24.3 I want to save the content of the clipboard or the last item of the kill-ring (depending whats newer) as a string so that I can do stuff with it in a eLisp function. ...
0
votes
1answer
44 views

How can I apply a keyboard macro to every line that starts with rectangle mark region

Lets suppose I would like to edit my text and to add comments to the column in the text. This is my text: something-text1 foobar1 something-text1 something-text2 foobar2 something-text2 --- ...
0
votes
1answer
22 views

Change the status of task from todo to done after clocking out

After org-clock-out the current todos, I have to manually change its status from todo to done. How could automate the process. If a clocking task was clocked-out, it's status would be changed to ...
0
votes
0answers
34 views

Use custom BibLaTeX fields with Org-ref

I am managing my bibliography with John Kitchin's org-ref package. I want to create an @film entry type with a few custom fields. So in my init.el file, I have: ;; Create fields for Film type (add-to-...
2
votes
2answers
52 views

Retracing steps with emacs (When programming /exploring)

Often when fixing a bug or implementing a new feature in a code repository, I start off with an investigatory step. For example, I would have a lead, a word such as "Article" and I would start by ...
2
votes
0answers
15 views

Using R double colon operator messes up the indentation in emacs

Using R double colon operator messes up the indentation in ess/emacs. For example, df <- map( xyz, something ) vs. df <- purrr::map( xyz, something) ...
0
votes
1answer
43 views

Am I missing something on eshell piping to an elisp function?

I use emacs on a lot of different types of machines during the day, so I'm toying with writing some elisp scripts to avoid managing 4 scripting environments. Specifically, I'm writing an elisp ...
0
votes
0answers
17 views

goto-last-change for multiple buffers

Is there a way to move the cursor to the place of the last change when working with multiple buffers? For working with a single buffer, the command goto-last-change can do the job. My question is for ...
0
votes
1answer
29 views

Emacs freeze with async command

Emacs 27.0.50. Windows 10. This function works finely when the line is commented: (defun Pfedj/write-async-file () (interactive) (async-start (lambda () (setq path "~/org/file....
0
votes
0answers
12 views

Notmuch non threaded view

In notmuch, I get a threaded view whenever I see mybsearch results. How do I get a non-threaded view? That is, all messages are listed chronologically, instead of a message being inlcuded way later ...
1
vote
1answer
45 views

Why so strange sort in dired mode?

windows 10, emacs 26.1, dired+ here myfolder in dired mode sort by name (by default): Now I want to sort by date (inverse mode). I press s and here result: why file new.txt is above two dots? The ...
0
votes
1answer
12 views

How can I fix shift-select-mode with own syntax-table

So I have modified syntax table for moving with C-<left>. (defvar my-wacky-syntax-table (let ((table (make-syntax-table))) (modify-syntax-entry ?\( "w" table) (modify-...
0
votes
1answer
30 views

Org mode capture from elswhere in mac

I have created a very simple org mode capture template to collect my random thoughts throughout the day. When in Emacs, I hit f6 and voila: capture template. However, in order to log the capture while ...
0
votes
1answer
19 views

Does it exists any library and or functionality that provides an API for indenting major modes?

I am currently maintaining a fork of a major mode and I usually get by through reusing snippets other people have written that provides indention for similar languages. However, this does lead to a ...
2
votes
1answer
21 views

How to concatenate similar groups of blocks during tangle with noweb syntax?

I used to have a literate configuration file structured as follows: #+BEGIN_SRC emacs-lisp :tangle "/tmp/out.el" :noweb yes ;; requirements <<require>> ;; other <<execute>> ...
0
votes
0answers
24 views

Mark Cursor Vertically on Multiple Lines

I can enter rectangle mark mode with C-x SPC, and then do C-p or C-n to set mark to the line above or below. How do I vertically mark multiple lines in one go without having to do C-p or C-n multiple ...
0
votes
0answers
10 views

Placement of listing environment

I have a org file as follows: #+NAME: ls:tpolicy-dr #+CAPTION: xxxxx #+ATTR_LATEX: :placement [ht!] :options framesep=3mm,xleftmargin=21pt,tabsize=4 #+BEGIN_SRC json [{ "Authority":"ABC", ...
0
votes
2answers
38 views

read epub with nov

Upon reading epub on emacs, I tried https://github.com/wasamasa/nov.el. Installed and configured step by step as its instructions. When C-x C-f to open an epub, it is displayed as M Filemode ...
1
vote
1answer
24 views

Disaable the prompts to save files

Every time, I save files, it prompts that save files ..? (y, n !) There are few cases that saving files are mistake operations. How could disable the confirmation prompts?
0
votes
0answers
15 views

In a terminal (not in Emacs), how can I use emacs helm/swipe to choose old shell command from bash_history?

In a terminal, we can use C-r to search a command from bash_history, but it is far less powerful than the Emacs package like helm-swoop or ivy-swipe. How can I use a shortcut in terminal (e.g., C-r) ...
0
votes
0answers
13 views

emacs breaks down text snippet copied from another X Window application

When I select with a mouse a block of text in Firefox or VIM for example, copy it and then try to paste in Emacs, it gets pasted, but unaligned, meaning that beginning of the lines shift away to the ...
0
votes
0answers
22 views

C-r in term-mode doesn't access reverse-i-search

I find that in term-char-mode with bash, C-r doesn't activate the shell's reverse-i-search function. How can I do that? PS. Apologies: I was using multi-term mode and had somehow convinced myself ...

15 30 50 per page