org-mode

Interactively enter headline under which to place an entry using capture

我是研究僧i 提交于 2019-12-09 17:21:18
问题 Using capture templates like the one below, I can add entries to different headlines in a file. How can I manually enter a headline during capture, instead of setting up each headline to a key in the .emacs file like I am now doing? (setq org-capture-templates '( ("l" "Log" entry (file+headline "c:/Org/log.org" "Log") "\n\n** %?\n<%<%Y-%m-%d %a %T>>" :empty-lines 1)) 回答1: I don't believe you can have it prompt for the headline on capture. You can however refile from within the capture window

emacs - save current buffer list to a text file

醉酒当歌 提交于 2019-12-09 10:50:04
问题 Quite often I need to get a simple text copy of my currently opened files. The reasons are usually: I want to send the list to a colleague I want to document whatever I am working on (usually in an org document) I want to act on one of my currently opened files, on the shell. I need to copy-paste the pathname for that. The fact is that the usual buffer-menu or list-buffers provide a convenient menu to navigate the opened buffers, but are very inconvenient to copy-paste to the the terminal the

Emacs Org-Mode & Literate Haskell

久未见 提交于 2019-12-09 10:20:22
问题 In org-mode, a line starting with a colon is formatted as source code. ( http://orgmode.org/manual/Literal-examples.html ) In literate Haskell, source code lines start with a greater then sign. I want to write literate Haskell with org-mode markdown, my current preferred format. As I assume that I cannot change the Haskell compiler, my question is: Can I somehow make the greater than sign a code-line marker in org mode? (I tried to find it myself, but as org.el is a 865k file, 22k loc, I'm

How can I reference a section by number in org-mode export?

*爱你&永不变心* 提交于 2019-12-09 08:49:24
问题 I'm working in org-mode and trying to generate a link to reference a section by its number, not its title. * Section One :PROPERTIES: :CUSTOM_ID: sec:one :END: * Section Two #+label: sec:two I can reference Section One with [[#sec:one]] and [[#sec:one][Section One]], but I can't get the actual section number (1) to resolve. I want to see As you can see in Section 1 By writing something like As you can see in Section [[sec:one]], Any ideas? 回答1: I use dedicated targets for this: * Section One

How to insert schedule with date and time in Emacs org-mode

与世无争的帅哥 提交于 2019-12-09 08:28:18
问题 When I insert a schedule with C-c C-s in Emacs org-mode , it always inserts a date like this: * TODO write product documents SCHEDULED: <2013-10-25 Fri> while what I want is this: * TODO write product documents SCHEDULED: <2013-10-25 Fri 11:34> Now I do this manually: firstly insert a schedule, then delete the date, then insert a timestamp with date and time using C-u C-c . . How can I insert a schedule with date and time only using C-c C-s ? Thanks. 回答1: When you're being asked for a date at

How do I format the postamble in HTML-export with Org-mode?

好久不见. 提交于 2019-12-09 05:34:43
问题 I am creating a website with org-mode and would like to format the postamble so it just shows the date created and the creator at the bottom of the page, in the center, and is horizontal. In my .emacs I have (setq org-export-html-postamble-format "Last Updated %d. Created by %c") and at the top of my index.org (and all other pages) I have # -*- org-export-html-postamble:t; -*- The postamble is formatted like this currently: Date: 16 March 2012 Org version 7.8.03 with Emacs version 24 Validate

How to keep indentation with Emacs + org-mode + visual-line-mode?

只谈情不闲聊 提交于 2019-12-08 22:53:11
问题 Emacs + org-mode + visual-line-mode + window resizing produce this kind of view : * My list * Some thing this is longer back to line which is really anoying * Other thing which is truncated * Sub items with blah to line I would rather prefer this : * My list * Some thing this is longer back to line which is really anoying * Other thing which is truncated * Sub items with blah to line Any clue about how to configure emacs or org-mode to achieve that would be really really appreciated :)

Org agenda “wrong number of arguments” error

假如想象 提交于 2019-12-08 12:52:27
问题 I recently went Win7->Win10 on my work PC and org-agenda is now kicking an error. GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 org 9.2.1 I've reduced my org-mode related .emacs down to the following and the issue is persisting. (custom-set-variables '(org-agenda-files (quote ("~/org/inWork.org"))) ) When I run org-agenda 'a', I get an empty agenda, dates only, nothing is captured from inWork.org. The minibuffer displays Wrong number of arguments: (0 . 0), 2 Running the same in

(org-use-fast-tag-selection (quote auto)) - breaks TAB Completion; non ASCII tag selection characters [\200]

余生长醉 提交于 2019-12-08 03:29:41
问题 I posted this in org-mode ML. No responses there so far, so cross-posting it here too. I have​ one ​ persistent tag​​ set with a key character like this: '(org-tag-persistent-alist (quote (("a" . 97)))) There are no file based #+TAGS in any of org files. I also like to have access to all tags in all files, so I set this up: (org-complete-tags-always-offer-all-agenda-tags t) Finally I'd like to have a fast selection splash screen: (org-use-fast-tag-selection (quote auto)) Now the problems: ​1.

Open Org Capture buffer in specific window?

回眸只為那壹抹淺笑 提交于 2019-12-08 01:28:46
问题 I've been an Emacs user for about a year or so. I routinely have the same window set up each session (four windows). I've set up capture templates and can capture what I want, but: instead of capture mode temporarily jerking me out of my window setup, I'd like the chosen capture template to open in a new (fifth) window, preserving my existing layout. I typically want the capture template open for a while, so it's disruptive. This seems like it would be an obvious option, but I can't figure it