org-mode

Emacs, How can I display only current task and hide others in org-mode?

点点圈 提交于 2019-12-31 10:46:28
问题 Org-mode. I have a big tasks tree and I want to select only 1 in buffer (write notes just for it) and hide others while editing. How can I do this? task-1 subtask-1.1 subtask-1.2 task-2 subtask2.1 ... ... For example I want to display for me only: subtask-1.2 (notes for this subtask) 回答1: Use narrow-to-defun or org-narrow-to-subtree command with point in task. ( widen to move back to whole buffer content). Default shortcuts: C-x n s # org-narrow-to-subtree (bound in org-mode) C-x n d # narrow

Emacs, How can I display only current task and hide others in org-mode?

為{幸葍}努か 提交于 2019-12-31 10:46:12
问题 Org-mode. I have a big tasks tree and I want to select only 1 in buffer (write notes just for it) and hide others while editing. How can I do this? task-1 subtask-1.1 subtask-1.2 task-2 subtask2.1 ... ... For example I want to display for me only: subtask-1.2 (notes for this subtask) 回答1: Use narrow-to-defun or org-narrow-to-subtree command with point in task. ( widen to move back to whole buffer content). Default shortcuts: C-x n s # org-narrow-to-subtree (bound in org-mode) C-x n d # narrow

Shift-Tab produces cryptic error in Emacs

帅比萌擦擦* 提交于 2019-12-30 08:33:10
问题 I'm trying to learn org-mode and noticed my files are folded neatly when I exit emacs. When pressing S-TAB in an attempt to unfold the entire file, I get the following error message in the mini-buffer: M-[ z is undefined . Googling the error wasn't helpful. Any idea where the hiccup is occurring and how I might fix it? I'm using Mac OS X 10.6.4 with Terminal.app, GNU Emacs 23.2.1. Edit: I can confirm now that the problem is Terminal.app. I do not receive this error message using Carbon Emacs

How can I emphasize or verbatim quote a comma in org mode?

感情迁移 提交于 2019-12-30 05:16:05
问题 I tried to make the comma *,* bold, but no success. I tried with verbatim =,= , but no success as well. 回答1: You can achieve what you want by adding the following to your .emacs : (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\r\n\"'") (org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-components) Explanation The manual says that org-emphasis-regexp-components can be used to fine tune what characters are allowed before and after the markup characters [...]. It is a

Completely hide the :PROPERTIES: drawer in org-mode

白昼怎懂夜的黑 提交于 2019-12-29 03:15:11
问题 Could someone please give me some assistance to completely hide the :PROPERTIES: drawer, including the line that says :PROPERTIES: . * TASKS (with deadines) ** Next Action [#A] Ask the geniuses how to do this. :lawlist: DEADLINE: <2013-07-04 Thu > :PROPERTIES: :ToodledoID: 330686790 :ToodledoFolder: TASKS :Hash: afa88f17317bbe2ce0ce661333cdcfb4 :END: This line is for notes, which appears underneath the properties drawer. * UNDATED (without deadlines) ** Someday [#A] Close but no cigar -- keep

Why doesn't emacs org mode work in -nw (--no-window-system) mode

时光毁灭记忆、已成空白 提交于 2019-12-25 06:45:03
问题 I'm trying to give a shot to emacs org mode, so I created a file and started adding bullets and tasks, all fine. I'd love to use emacs in -nw mode so it would blend into my workflow, but, when I open an org file in -nw mode, it read the bullets, but I can't use any of the org mode shortcuts and I get none of its benefits. Already double checked if I was indeed in org mode. Am I doing something wrong? 回答1: It seems like your terminal is intercepting your keystrokes, and you should go into its

Is it possible to use recursive cell formulas in org-mode tables?

旧街凉风 提交于 2019-12-25 05:05:41
问题 I'd like to build a column that begins with a constant, say, 1, and whose succeeding rows are double the preceding row (or some variable coefficient I set in the formula): | 1 | | 2 | | 4 | | 8 | | 16 | Is there a way to quickly set this up in Emacs? I see that there are row formulas, column formulas, and rectangular region formulas, but I don't see any recursion or quick formula replication in the manual. 回答1: #+TBLFM: @1$1=1::@<<..>$1=@-1 * 2 will produce that table recursively. Put the

How to search for a complete org headline that was saved as a variable

寵の児 提交于 2019-12-25 01:46:47
问题 The function (org-heading-components) and (org-element-property) produce integers for the number of stars and also for the priority. I'd like to store the entire headline as a variable and then use re-search-forward (or a similar function) to go back to that heading, but I foresee the problem that will occur when it cannot find an integer. I need to store the whole heading as a variable, because I often have todo entries with duplicate titles but the other components are diferent. For example

Controlling the actions with org-mode

不打扰是莪最后的温柔 提交于 2019-12-24 10:11:31
问题 When I have a python code in "/abc/hello" with -rwxr-xr-x and I have a [[/abc/hello]], I click the link to run hello code. Can I change the action so that I can edit (open an editor) abc/hello file? I tried this (setq org-link-abbrev-alist '( ("edit" . "mate %s"))) with [[edit:/abc/hello]] , but it doesn't work. I also tried file:/abc/hello , but it doesn't work neither. SOLVED ("mate" . "shell:/usr/local/bin/mate %s") And to turn confirmation off (setq org-confirm-shell-link-function nil)

Emacs org-mode: refile using the goto-interface

冷暖自知 提交于 2019-12-24 05:10:52
问题 I often use the capture-refile-archive structure of org-mode but I have problem with the way the refiling works. I use IDO completion so that when I refile a tree C-c C-w I get all the possible trees to refile under in the mini-buffer. However, this results in a huge number of possible completions that really aren't very readable. It would be far better if you could choose a refile file location and then use the org-goto-interface temporary buffer to choose a particular subtree. Does anybody