It would be good to let org-agenda prompt for the items still in the TODO list.
But my list is long. So I'm trying to split the screen to 4 parts, with each part shows a section of the list. As shown in attached figure.
The headache is (org-agenda) always try to split the window itself. The way to get around this is try to export sections of the TODO list into files regularly and use (read-file).
Is there any help on how to write this little function out? I'm not too good at elisp yet. Appreciate the help.
Related
I'm a complete newbie when it comes to emacs. I recently installed Doom emacs and I've been really enjoying it. One thing that I'm struggling to find out is how do I quickly access/select on of the actions that are given to me by lsp-mode (I assume it's lsp-ui). I've attached a screenshot - the actions that I'm referring to are on the right-hand side.
Quick side questions:
When I jump to definition (spc-c-d) how do I jump back? Do I just kill the buffer?
Using ivy, how can I easily go through the list? - using control-n is a bit hard
You can come back to the previous buffer using CTRL+O
You can go down or up in the list using CTRL+j or CTRL+k
There are some tricks to get the answer:
first, try to find the action or function you know.
example 1. "M-x action-you-want-to-know"
example 2. "C-h k then-type-the-shortcut-key-you-want-to-search"
second, try to get the answer from project issues
The answer to your question:
1: press "C-o" jump backward
2: Try to input multi keywords in your search field to narrow down the search scope, just like increment search.
If you get too many lines after ivy-search some keyword you input, that means you donot know what you want to search, right?
I have some custom completions in my ST3 user directory.
When I start typing, the autocomplete suggestions show up from my completions just fine. However, this gets in the way of completions which are in the buffer.
e.g.
Say I have the word 'prime-squares' in my current file buffer.
Now somewhere else in the file, I start to type 'pri..' and all I see are suggestions from my completions files. And not until I almost type the full word 'prime-square..' does the autocomplete suggestion for 'prime-squares' show up.
Which completely defeats the purpose of autocomplete.
Please note that autocomplete suggestions run out after say typing 'prime-..', and yet the suggestion 'prime-squares' doesn't show up until I've typed some more.
Is there a way to set weights for suggestions?
Or set them up in such a way, that the matching words in the current file always show up first, along with any other suggestions from completions files at the bottom?
As far as I'm aware there's way to weight the order in which the completions in the auto-complete popup are presented. This seems to be confirmed by the section on Completions in the Unofficial Docs, which say:
These are the sources for completions the user can control, in the order they are prioritized:
1. Snippets
2. API-injected completions via on_query_completions()
3. Completions files
Additionally, the following completions are folded into the final list:
4. Words in the buffer
That said, some quick testing seems to indicate that the presence of even a single completion with a trigger that matches words in the buffer stops those words from appearing in the completions list.
As seen here, without any completions both words that start with co and words that start with di will cause words from the buffer to appear in the completions list. Introducing a completion with a trigger that contains the text disjoin stops those matching buffer words from appearing, although the other words still do.
As far as I can see, it's doing that by design, as I haven't been able to determine any setting that may get around that. If that's the case you may need to make a feature request or check if someone has logged this as an issue already, as it may also be a bug.
Admittedly I don't use completions a lot, so there may be some way around this that I'm unaware of.
I want to have something like this:
A list of buffer is display
As I select a buffer in the list, it's content is display immediately.
The list can be in minibuffer (preferred) or in a separate window
Is there a plug in for this?
Finally found what I wanted (although a bit differed from what I wanted, but it got the essential feature right): https://github.com/martinp26/cycbuf
It automatically display buffers with a list of buffer as the cursor move at a buffer name. Customize variable cycbuf-clear-delay to adjust the time the buffer list is toggled; after exceeding the delay, the buffer list is automatically turned off and the buffer is picked.
^x^b displays a list of buffers, then you can click on one. Is that what you want?
There are several alternatives. For discussion on these, see for example http://www.emacswiki.org/emacs/ControlTABbufferCycling
There's many options. Some are:
to display a list of buffers: ibuffer is an option http://www.emacswiki.org/emacs/IbufferMode
to have the list in the minibuffer: ido-switch-buffer http://wikemacs.org/index.php/Ido#Virtual_Buffers or you can use helm's interface http://wikemacs.org/index.php/Helm
The EmacsWiki pages cited in the other answers (so far) are a subset of the wiki's main page for this topic, which is where you should start.
(That wiki page is also a good place for other answers, which do not cite EmacsWiki, to update. ;-) )
I want to implement Autofocus system in org-mode using agenda views. Autofocus is a time-management system, where you write tasks in a lined notebook with 25-35 lines on a page and you don't start working on the next page until you processed the current page.
By default agenda collects all todos and throws them in a buffer altogether. I want to break these todos by blocks of 20 tasks, for example, so i can process one batch of 20 tasks, then another batch, and so on.
How can i do it? Any solution from using org-mode built-in trick to some emacs lisp snippet is appreciated.
I don't see this going the same way as the agenda usually goes, i.e. chronology, so I don't think there are meant-to-be ways to do that. What comes to my mind, though, is defining your batches with tags (: in the agenda to set tags, say on the first 20), then filtering by tags (/ SPC to filter on tags of the current line).
The first idea I had was basically the same with priorities : S-<up> in the agenda to set them, but then filtering by priority is described here on the mailing list, but doesn't seem that easy.
From the documentation, org-agenda-max-todos and org-agenda-max-entries might be what you are looking for.
Note: I have never used them. I came across these a while ago
I'm looking for an equivalent of for example DOS's dir |more which lists the data, until one page is complete, then waits for a key to be pressed until showing another. Is there an equivalent for MATLAB's help system.
I know I could simply scroll back, but this would be so much more convenient, expecially if one uses help system often.
Type more on at the command line. This will print command outputs page by page.
For the next line: 'return'; next page; 'spacebar'; return to command line: 'q'.
Likewise, more off resumes the normal display mode.