简体   繁体   中英

emacs org-mode: completing a multi-line task

I am new to org-mode (using it under evil) and been using it as a very nice ASCII-based TODO with scheduled times and completion dates. I have a simple question - and in my case, I think an image is worth 1000 words...

Look at the image below, in the line that starts with "Merge button: ...." - ie the one that I've split to two lines - with the continuation line starting with "click after..."

After hitting TAB to open the action tree node, the continuation line is colored in grey - as if it's not a part of the task in question:

分裂线

This is further verified if I mark the task as DONE (shift-rightCursor): The DONE marker is placed below my task line, not below my continuation line - as if the continuation line is on its own:

完成的地方说完了

I am probably missing something obvious - any help will be most appreciated.

In a word, it's the Design.

You could think like this: The headline (first line) is the title of a task, the rest are contents/description or sub tasks.

The text at issue in the question of the original poster is what I generally refer to as the notes section of a task. By design, org-mode does not assign a particular highlighting of the notes section -- ie, the default font for text will be used.

However, all is not lost. It is possible to change the default font for a particular buffer using the face-remapping-alist and setting it as a local variable. The following example uses a cyan foreground color, but it can be just about anything: http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html I'm not certain when setq-local was introduced, but it is available in a current version of Emacs Trunk and may be available in earlier versions of Emacs.


(defun my-org-notes-face-function ()
(interactive)
  (setq-local face-remapping-alist '(
    (default (:foreground "cyan")))))

(add-hook 'org-mode-hook 'my-org-notes-face-function)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM