From 6b8f7e015e5bf03daae69edb0375ef0aa5af07f2 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 12 May 2009 11:31:42 +0200 Subject: [PATCH] Use properties for custom IDs --- org-faq.org | 303 +++++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 226 insertions(+), 77 deletions(-) diff --git a/org-faq.org b/org-faq.org index 3edd726..6d5bd78 100644 --- a/org-faq.org +++ b/org-faq.org @@ -30,12 +30,18 @@ If your browser supports JavaScript, you can... * What is org-mode? ** Can I implement a GTD workflow with Org-mode? -#<> + :PROPERTIES: + :CUSTOM_ID: GTD-workflow-with-Org-mode + :END: + + #<> Yes, you can. Check for discussions and pointers [[http://orgmode.org/worg/org-gtd-etc.php][here]]. ** What is the difference between Org and TaskPaper? -#<> + :PROPERTIES: + :CUSTOM_ID: Org-and-TaskPaper + :END: There is really no difference. Org is as /simple/ as [[http://hogbaysoftware.com/products/taskpaper][TaskPaper]]. It is just that, when using Org within Emacs, it lets you do many things @@ -46,7 +52,9 @@ If your browser supports JavaScript, you can... Read [[http://article.gmane.org/gmane.emacs.orgmode/6224][Carsten's enlightening statement]] on this. ** What is the meaning of the Unicorn on Org's website? -#<> + :PROPERTIES: + :CUSTOM_ID: unicorn + :END: This was /Bastien Guerry's/ idea, and his friend /Christophe Bataillon/ designed the unicorn logo for us. Bastien writes why he @@ -94,7 +102,9 @@ and [[http://article.gmane.org/gmane.emacs.orgmode/11735][Tim Burt]] made a very * Keeping current ** How do I keep current with Org mode development? -#<> + :PROPERTIES: + :CUSTOM_ID: keeping-current-with-Org-mode-development + :END: Org mode is developed in [[http://en.wikipedia.org/wiki/Git_(software)][Git]]. You can keep up-to-date with Org mode developement by cloning Org mode repository and refreshing @@ -155,7 +165,9 @@ and [[http://article.gmane.org/gmane.emacs.orgmode/11735][Tim Burt]] made a very the objects. ** How can I keep local changes and still track Org mode development? -#<> + :PROPERTIES: + :CUSTOM_ID: keeping-local-changes-current-with-Org-mode-development + :END: Say you want to make minor changes to the Makefile to reflect your location for =emacs=. @@ -288,7 +300,9 @@ using * Setup ** Can I use the editing features of org-mode in other modes? -#<> + :PROPERTIES: + :CUSTOM_ID: use-editing-features-in-other-modes + :END: Not really---but there are a few editing features you can use in other modes. @@ -316,7 +330,9 @@ using prepare text in a different buffer. ** Why isn't feature "X" working the way it is described in the manual? -#<> + :PROPERTIES: + :CUSTOM_ID: making-sure-org-mode-is-up-to-date + :END: Org-mode develops very quickly. There have been a great many changes, for instance, since the release of Emacs 22, which shipped with @@ -349,7 +365,9 @@ For instructions on how to stay current with org-mode, consult [[keeping-current FAQ]] or follow the instructions on [[http://orgmode.org][the official org-mode site]]. ** Can I get the visibility-cycling features in outline-mode and outline-minor-mode? -#<> + :PROPERTIES: + :CUSTOM_ID: use-visibility-cycling-in-outline-mode + :END: Yes, these functions are written in a way that they are independent of the outline setup. The following setup provides standard Org-mode @@ -373,14 +391,18 @@ promotion and demotion functionality. /outline-magic.el/ is available at [[http://www.astro.uva.nl/~dominik/Tools/OutlineMagic][Outline Magic]]. ** How can I keep track of changes in my Org files? -#<> + :PROPERTIES: + :CUSTOM_ID: track-of-changes-in-Org-files + :END: Use git to track the history of the files, use a cronjob to check in changes regularly. Such a setup is described by Bernt Hansen in [[http://article.gmane.org/gmane.emacs.orgmode/6233][this message]] on [[http://dir.gmane.org/gmane.emacs.orgmode][emacs-orgmode]]. ** Can I use Org-mode as the default mode for all README files? -#<> + :PROPERTIES: + :CUSTOM_ID: Org-mode-as-default-mode + :END: Add the following to your .emacs file: @@ -392,7 +414,9 @@ mode using : (setq default-major-mode 'org-mode) ** Can I use ido.el for completing stuff in Org? -#<> + :PROPERTIES: + :CUSTOM_ID: ido-complete + :END: Yes, you can. If you are an ido user and ido-mode is active, the following setting will make Org use =ido-completing-read= for most @@ -401,7 +425,9 @@ mode using : (setq org-completion-use-ido t) ** Should I use one big org file or multiple files? -#<> + :PROPERTIES: + :CUSTOM_ID: how-to-organize-org-mode-files + :END: Org-mode is flexible enough to accomodate a variety of organizational and time management schemes. Org's @@ -437,7 +463,9 @@ For more ideas, see some of the links on the [[file:org-tutorials/index.org][org [[file:org-gtd-etc.org][this page on org-mode and GTD]]. ** Why doesn't C-c a call the agenda? Why don't some org keybindings work? -#<> + :PROPERTIES: + :CUSTOM_ID: setting-global-keybindings + :END: Org-mode has a few global keybindings that the user must set explicitly in an =.emacs= file. These keybindings include the @@ -460,7 +488,9 @@ Please see [[http://orgmode.org/manual/Activation.html][this section of the manu questions. ** Why aren't some of the variables I've customized having an effect? -#<> + :PROPERTIES: + :CUSTOM_ID: load-org-after-setting-variables + :END: Some org variables have to be set before org.el is loaded or else they will not work. (An example is the new variable @@ -478,23 +508,31 @@ files *after* you have set your variables. * Errors ** When I try to use Org-mode, I always get the error message =(wrong-type-argument keymapp nil)= -#<> + :PROPERTIES: + :CUSTOM_ID: wrong-type-argument-keymapp + :END: This is a conflict with an outdated version of the /allout.el/, see the [[http://orgmode.org/manual/Conflicts.html#Conflicts][Conflicts]] section in the manual ** Org-mode takes over the S-cursor keys. I also want to use CUA-mode, is there a way to fix this conflict? -#<> + :PROPERTIES: + :CUSTOM_ID: CUA-mode + :END: Yes, see the [[http://orgmode.org/manual/Conflicts.html#Conflicts][Conflicts]] section of the manual. ** Org-mode takes over the S-cursor keys. I also want to use windmove.el, is there a way to fix this conflict? -#<> + :PROPERTIES: + :CUSTOM_ID: windmove.el + :END: Yes, see the [[http://orgmode.org/manual/Conflicts.html#Conflicts][Conflicts]] section of the manual. ** Org behaves strangely: some keys don't work, some features are missing, my settings have no effect, ... -#<> + :PROPERTIES: + :CUSTOM_ID: loaded-old-org + :END: When this sort of things happen, it probably is because Emacs is loading an old version of Org-mode instead of the one you expected. Check it with =M-x org-version=. @@ -509,7 +547,9 @@ Function =add-to-list= adds at the beginning. Don't use =append= because it appe This wrong version loading may also happen if you have a byte-compiled =org.elc= from an old version together with a new =org.el=. Since Emacs prefers loading byte-compiled files (even if the =.el= is newer), it will load the old Org-mode. ** Why doesn't org-batch-agenda work under Win32? -#<> + :PROPERTIES: + :CUSTOM_ID: org-batch-agenda-under-win32 + :END: When I run the example batch files to print my agenda to the console under Win32 I get the failure: @@ -537,7 +577,9 @@ you need to use the following: * Outline ** Can I have two windows on the same Org-mode file, with different outline visibilities? -#<> + :PROPERTIES: + :CUSTOM_ID: indirect-buffers + :END: You may use /indirect buffers/ which do exactly this. See the documentation on the command =make-indirect-buffer=. @@ -556,16 +598,22 @@ you need to use the following: typing =b= on an item in the agenda. ** Emacs outlines are unreadable. Can I get rid of all those stars? -#<> + :PROPERTIES: + :CUSTOM_ID: Emacs-outlines-are-unreadable + :END: See the section [[http://orgmode.org/manual/Clean-view.html#Clean-view][Clean outline view]] in the manual. ** C-k is killing whole subtrees! I lost my work! -#<> + :PROPERTIES: + :CUSTOM_ID: C-k-is-killing-subtrees + :END: =(setq org-special-ctrl-k t)= before losing your work. ** Why aren't commands working on regions? -#<> + :PROPERTIES: + :CUSTOM_ID: transient-mark-mode + :END: Some org-mode commands, such as M-right and M-left for demoting or promoting headlines (see [[demote-multiple-headlines][this FAQ]]), can be applied to entire regions. @@ -583,7 +631,9 @@ momentary mark]] (=C- C-=). :PROPERTIES: :ID: 2463F4D8-F686-4CF3-AA07-08976F8A4972 :END: -#<> + :PROPERTIES: + :CUSTOM_ID: blank-line-after-headlines-and-list-items + :END: In org-mode, typing =M-RET= at the end of a headline will create a new headline of the same level on a new line. The same is true for plain @@ -613,7 +663,9 @@ variable =org-blank-before-new-entry=. You can set headings and/or plain lists to auto (the default setting), t (always), or nil (never). ** How can I promote or demote multiple headlines at once? -#<> + :PROPERTIES: + :CUSTOM_ID: demote-multiple-headlines + :END: If you have a long list of first level headlines that you'd like to demote to second level headlines, you can select the headlines as a @@ -627,18 +679,24 @@ enabled. See [[transient-mark-mode][this FAQ]]. * Todos and Tags ** How can I cycle through the TODO keyword of an entry? -#<> + :PROPERTIES: + :CUSTOM_ID: cycle-TODO-keywords + :END: =C-c C-t= or =S-= is what you need. ** How do I track state changes for tasks in Org? -#<> + :PROPERTIES: + :CUSTOM_ID: track-state-changes-for-tasks + :END: Take a look at the [[http://thread.gmane.org/gmane.emacs.orgmode/6082][post by Bernt Hansen]] for setting up TODO keyword states and logging timestamps for task state changes. ** Can I select the TODO keywords with a tag-like interface? -#<> + :PROPERTIES: + :CUSTOM_ID: select-TODO-keywords-with-tag-like-interface + :END: Yes. Use =(setq org-use-fast-todo-selection t)= @@ -649,7 +707,9 @@ enabled. See [[transient-mark-mode][this FAQ]]. See [[http://orgmode.org/manual/Fast-access-to-TODO-states.html][this section of the manual]] for more details. ** How can I quickly set the tag of an entry? -#<> + :PROPERTIES: + :CUSTOM_ID: quickly-set-tag-of-entry + :END: Use =C-c C-c= or =C-c C-q= on the headline. =C-c C-q= is useful for setting tabs in a [[http://orgmode.org/manual/Remember.html#Remember][remember]] buffer, since =C-c C-c= is the default @@ -700,7 +760,9 @@ You can also set values for each of these in your =.emacs= file: * Hyperlinks ** Why do I have to confirm the execution of each shell/elisp link? -#<> + :PROPERTIES: + :CUSTOM_ID: confirm-shell/elisp-link + :END: The confirmation is there to protect you from unwantingly execute potentially dangerous commands. For example, imagine a link @@ -719,7 +781,9 @@ You can also set values for each of these in your =.emacs= file: recommend against this. Be warned. ** Can I use RET or TAB to follow a link? -#<> + :PROPERTIES: + :CUSTOM_ID: RET-or-TAB-to-follow-link + :END: Yes, this is how: @@ -727,7 +791,9 @@ You can also set values for each of these in your =.emacs= file: : (setq org-tab-follows-link t) ** Can I keep mouse-1 clicks from following a link? -#<> + :PROPERTIES: + :CUSTOM_ID: mouse-1-following-link + :END: Activating links with =mouse-1= is a new feature in Emacs 22, to make link behavior similar to other applications like web browsers. If @@ -739,7 +805,9 @@ You can also set values for each of these in your =.emacs= file: : (setq org-mouse-1-follows-link nil) ** How can I get completion of file names when creating a link? -#<> + :PROPERTIES: + :CUSTOM_ID: completion-of-file-links + :END: You can use org-insert-link with a prefix argument: @@ -749,7 +817,9 @@ You will be greeted with prompt in the minibuffer that allows for file completion using your preferred Emacs method for finding files. * Plain Lists ** How can I insert an empty line before each newly inserted headline, but not before each newly inserted plain-list item? -#<> + :PROPERTIES: + :CUSTOM_ID: empty-line-before-each-new-headline-but-not-item + :END: : (setq org-blank-before-new-entry : '((heading . t) (plain-list-item . nil)) @@ -757,7 +827,9 @@ completion using your preferred Emacs method for finding files. See also [[id:2463F4D8-F686-4CF3-AA07-08976F8A4972][Why is a blank line inserted after headlines and list items?]]. ** How can I convert itemized lists to enumerated lists? -#<> + :PROPERTIES: + :CUSTOM_ID: convert-itemized-to-enumerated-lists + :END: You can use =C-c -= or =S-/= to cycle through the various bullet headlines available for lists: =-, +, *, 1., 1)=. @@ -765,7 +837,9 @@ See also [[id:2463F4D8-F686-4CF3-AA07-08976F8A4972][Why is a blank line inserted See [[http://orgmode.org/manual/Plain-lists.html#Plain-lists][this section of the manual]] for more information. ** How can I convert plain lists to headlines and vice versa? -#<> + :PROPERTIES: + :CUSTOM_ID: convert-plain-lists-to-headlines + :END: To convert a plain list item or line to a headline, type =C-c *= on the headline. This will make the line a subheading of the current @@ -781,7 +855,9 @@ See also [[id:2463F4D8-F686-4CF3-AA07-08976F8A4972][Why is a blank line inserted Hansen explains in [[http://article.gmane.org/gmane.emacs.orgmode/10148][this mailing list post]]. ** Is there a good way to create a description list? -#<> + :PROPERTIES: + :CUSTOM_ID: description-lists + :END: Yes, these are now built-in: @@ -794,7 +870,9 @@ See also [[id:2463F4D8-F686-4CF3-AA07-08976F8A4972][Why is a blank line inserted * Tables ** Can I plot data from a table? -#<> + :PROPERTIES: + :CUSTOM_ID: plotting-table-data + :END: Yes, you can, using org-plot.el written by James TD Smith and now bundled with Org. See [[http://orgmode.org/manual/Org-Plot.html#Org-Plot][the manual section about this]]. @@ -802,7 +880,9 @@ See also [[id:2463F4D8-F686-4CF3-AA07-08976F8A4972][Why is a blank line inserted See also [[file:org-tutorials/org-plot.org][this excellent tutorial]] by Eric Schulte. ** How can I fill a table column with incremental numbers? -#<> + :PROPERTIES: + :CUSTOM_ID: fill-table-column-with-incremental-numbers + :END: Here is how: Use a field formula to set the first value in the column: @@ -844,7 +924,9 @@ incremental numbers: Note that you could use arbitrary starting values and column formulas. ** Why does my table column get filled with #ERROR? -#<> + :PROPERTIES: + :CUSTOM_ID: table-column-filled-with-ERROR + :END: Org-mode tried to compute the column from other fields using a formula stored in the =#+TBLFM:= line just below the table, and @@ -852,7 +934,9 @@ Note that you could use arbitrary starting values and column formulas. formula, or fix the formula, or remove it! ** How can I stop the table editor from creating new lines? -#<> + :PROPERTIES: + :CUSTOM_ID: table-editor-creates-new-lines + :END: When I am in the last column of a table and just above a horizontal line in the table, pressing TAB creates a new table line before the @@ -865,7 +949,9 @@ Note that you could use arbitrary starting values and column formulas. : (setq org-table-tab-jumps-over-hlines t) ** How can I get table fields starting with "="? -#<> + :PROPERTIES: + :CUSTOM_ID: table-fields-starting-with-= + :END: With the setting @@ -875,13 +961,17 @@ Note that you could use arbitrary starting values and column formulas. commands @C-c =@ and @C-u C-c =@ ** How can I change the indentation of an entire table without fixing every line by hand? -#<> + :PROPERTIES: + :CUSTOM_ID: change-indentation-entire-table + :END: The indentation of a table is set by the first line. So just fix the indentation of the first line and realign with =TAB=. ** In my huge table the realigning after each TAB takes too long. What can I do? -#<> + :PROPERTIES: + :CUSTOM_ID: table-realigning-after-TAB-takes-long + :END: Either split the table into several by inserting an empty line every 100 lines or so. Or turn off the automatic re-align with @@ -893,7 +983,9 @@ Note that you could use arbitrary starting values and column formulas. during editing. ** Recalculation of my table takes too long. What can I do? -#<> + :PROPERTIES: + :CUSTOM_ID: Recalculation-of-my-table-takes-too-long + :END: Nothing, really. The spreadsheet in org is mostly done to make calculations possible, not so much to make them fast. Since Org-mode @@ -916,7 +1008,9 @@ Note that you could use arbitrary starting values and column formulas. all. If you have a good case, you could try to convince me. ** =S-RET= in a table keeps increasing the copied numbers. How can I stop this? -#<> + :PROPERTIES: + :CUSTOM_ID: S-RET-in-a-table-increases-copied-numbers + :END: Well, it is /supposed/ to be a feature, to make it easy to create a column with increasing numbers. If this gets into your way, turn it @@ -926,13 +1020,17 @@ Note that you could use arbitrary starting values and column formulas. * Remember ** Can I use the remember buffer to clock a customer phone call? -#<> + :PROPERTIES: + :CUSTOM_ID: use-remember-buffer-to-clock-phone-call + :END: Yes, you can. Take a look at the [[http://thread.gmane.org/gmane.emacs.orgmode/5482][setup described by Bernt Hansen]] and check out (in the same thread) what Nick Docos had to fix to make Bernt's set-up work for him. ** Can I automatically start the clock when opening a remember template? -#<> + :PROPERTIES: + :CUSTOM_ID: start-clock-when-opening-remember-template + :END: Yes, this is possible. Use the following code and make sure that after executing it, `my-start-clock-if-needed' is in @@ -952,12 +1050,16 @@ Note that you could use arbitrary starting values and column formulas. * Searches ** Isearch does not find string hidden in links. What can I do? -#<> + :PROPERTIES: + :CUSTOM_ID: isearch-in-links + :END: M-x =visible-mode= will display the full link, making them searchable. ** How can I reduce the amount of context shown in sparse trees? -#<> + :PROPERTIES: + :CUSTOM_ID: context-in-sparse-trees + :END: Take a look at the following variables: @@ -970,7 +1072,9 @@ Note that you could use arbitrary starting values and column formulas. by a particular operation. ** How can I combine the results of two calls to =org-occur=? -#<> + :PROPERTIES: + :CUSTOM_ID: two-calls-to-org-occur + :END: You can construct a regular expression that matches all targets you want. Alternatively, use a =C-u= prefix with the second and any @@ -1002,7 +1106,9 @@ individual items as follows: The "-2d" above changes the lead time for this deadline warning to two days in advance. You can also use "w" for weeks and "m" for months. ** How can I postpone a task until a certain date? -#<> + :PROPERTIES: + :CUSTOM_ID: deferring-tasks + :END: The easiest way to postpone a task is to schedule it in the future. For instance, typing =C-c C-s +2w= on a headline will push a task two @@ -1021,12 +1127,16 @@ list, you have a couple of options. item will still appear on your agenda two weeks from today, but it won't show up on your todo lists. ** Can I send myself an email containing tasks or other agenda info? -#<> + :PROPERTIES: + :CUSTOM_ID: email-containing-tasks-or-other-agenda-info + :END: Yes. See [[http://article.gmane.org/gmane.emacs.orgmode/6112][this thread]] on the list. ** How can I limit the agenda view to my "work" tasks? -#<> + :PROPERTIES: + :CUSTOM_ID: limit-agenda-with-tag-filtering + :END: It is often convenient to group org files into separate categories, such as "home" and "work" (or "personal" and "professional"). One @@ -1052,7 +1162,9 @@ list, you have a couple of options. : C-c a a / work [or a tag shortcut] ** How can I limit the agenda view to a particular category? -#<> + :PROPERTIES: + :CUSTOM_ID: limit-agenda-with-category-match + :END: Another way to filter agenda views by type of work is to use a "#+CATEGORY" declaration at the top of each file, such as: @@ -1086,7 +1198,9 @@ list, you have a couple of options. #+END_SRC ** How can include all org files in a directory in my agenda? -#<> + :PROPERTIES: + :CUSTOM_ID: set-agenda-files-using-wildcards + :END: You can use the file-expand-wildcards function to all files ending in =org= in a directory to your agenda files list: @@ -1094,7 +1208,9 @@ You can use the file-expand-wildcards function to all files ending in : (setq org-agenda-files (file-expand-wildcards "~/org/*.org")) ** Why aren't items disappearing from my agenda once they are marked done? -#<> + :PROPERTIES: + :CUSTOM_ID: removing-done-items-from-agenda + :END: If items remain on your daily/weekly agenda after they are marked done, check the configuration of the following variables: @@ -1118,7 +1234,9 @@ sure you understand [[scheduled-vs-deadline-vs-timestamp][the difference between SCHEDULED, DEADLINE, and timestamps]]. ** What is the difference between SCHEDULED, DEADLINE, and plain timestamps? -#<> + :PROPERTIES: + :CUSTOM_ID: scheduled-vs-deadline-vs-timestamp + :END: 1. SCHEDULED items (set with =C-c C-s=) will appear on your agenda on the day they are scheduled and on every day thereafter until they @@ -1150,7 +1268,9 @@ Note: items with inactive timestamps (set with C-c ! and marked by square brackets) will not show up in the agenda at all. ** Can I add files recursively to my list of agenda files? -#<> + :PROPERTIES: + :CUSTOM_ID: set-agenda-files-recursively + :END: Yes, you can use the library "find-lisp." @@ -1164,7 +1284,9 @@ See [[http://thread.gmane.org/gmane.emacs.orgmode/8992][this thread]] on the mai * Appointments/Diary ** Is it possible to include entries from org-mode files into my emacs diary? -#<> + :PROPERTIES: + :CUSTOM_ID: include-entries-from-org-mode-files-into-emacs-diary + :END: Since the org-mode agenda is much more powerful and can contain the diary, you should think twice before deciding to do this. If you @@ -1194,23 +1316,31 @@ See [[http://thread.gmane.org/gmane.emacs.orgmode/8992][this thread]] on the mai is not possible to jump back from the diary to the org, this works only in the agenda buffer. ** I want to add my Org scheduled/deadlined entries in my diary! -#<> + :PROPERTIES: + :CUSTOM_ID: add-Org-scheduled/deadlined-entries-to-diary! + :END: Put this in your ~/.diary: : &%%(org-diary :scheduled :timestamp :deadline) ** How can I set up automatic reminders based on Org information? -#<> + :PROPERTIES: + :CUSTOM_ID: automatic-reminders + :END: See [[http://article.gmane.org/gmane.emacs.orgmode/5271][this post]] by N. Dokos on the list. ** How can I make =appt= notice my Org appointments? -#<> + :PROPERTIES: + :CUSTOM_ID: appt-notice-my-Org-appointments + :END: : M-x org-agenda-to-appt RET ** How can I shedule an weekly appointment that lasts only until a certain date? -#<> + :PROPERTIES: + :CUSTOM_ID: diary-sexp-in-org-files + :END: Org-mode's active timestamps work very well for scheduling individual or recurring appointments, such as: @@ -1239,7 +1369,9 @@ Emacs wiki]]. * Export ** Can I get TODO items exported to HTML as lists, rather than as headlines? -#<> + :PROPERTIES: + :CUSTOM_ID: export-TODO-items-as-lists + :END: If you plan to use ASCII or HTML export, make sure things you want to be exported as item lists are level 4 at least, even if that does @@ -1257,13 +1389,17 @@ Emacs wiki]]. : #+OPTIONS: H:2; ... ** Can I export only a single subtree? -#<> + :PROPERTIES: + :CUSTOM_ID: export-single-subtree + :END: If you want to export a subtree, mark the subtree as region and then export. Marking can be done with =C-c @ C-x C-x=, for example. ** How can I get Mac OSX 10.3 iCal to import my Org-exported .ics files? -#<> + :PROPERTIES: + :CUSTOM_ID: iCal-import-ics-files-old + :END: When using iCal under Apple MacOS X Tiger, you can create a new calendar /OrgMode/ (the default name for the calendar created by =C-c @@ -1282,14 +1418,18 @@ Emacs wiki]]. : "osascript -e 'tell application \"iCal\" to reload calendars'"))) ** How can I get Mac OSX 10.4 or later iCal to import my Org-exported .ics files? -#<> + :PROPERTIES: + :CUSTOM_ID: iCal-import-ics-files-new + :END: For Mac OS X 10.4, you need to write the ics file to =/Library/WebServer/Documents/= and then subscribe iCalendar to =http: //localhost/orgmode.ics= ** How can I remove timestamps and todo keywords from my exported file? -#<> + :PROPERTIES: + :CUSTOM_ID: export-options-remove-timestamps + :END: You can place an options line at the top of your org file: @@ -1300,8 +1440,10 @@ options or via global variables. See [[http://orgmode.org/manual/Export-options. full list. ** How can I preserve faces when I export an agenda from the command line? -#<> - + :PROPERTIES: + :CUSTOM_ID: preserving-faces-during-batch-export + :END: + Normally, when you export an org file or an agenda view from within emacs, htmlize will convert your face definitions to direct color css styles inlined into each == object, resulting in an HTML output @@ -1341,12 +1483,19 @@ which you can add to your style file. * COMMENT HTML style specifications -(defun org-faq-make-target () "Make hard target for current headline." - (interactive) (if (not (org-on-heading-p)) (error "Not on a - headline")) (let ((h (org-trim (org-get-heading 'no-tags)))) (if - (string-match "[ \t]*\\?\\'" h) (setq h (replace-match "" t t h))) - (while (string-match "[ \t]+" h) (setq h (replace-match "-" t t h))) - (beginning-of-line 2) (insert "#<<" h ">>\n"))) +#+begin_src emacs-lisp +(defun org-faq-make-target () + "Make hard target for current headline." + (interactive) + (if (not (org-on-heading-p)) + (error "Not on a headline")) + (let ((h (org-trim (org-get-heading 'no-tags)))) + (if (string-match "[ \t]*\\?\\'" h) + (setq h (replace-match "" t t h))) + (while (string-match "[ \t]+" h) + (setq h (replace-match "-" t t h))) + (org-entry-put nil "CUSTOM_ID" h))) +#+end_src # Local Variables: -- 2.11.4.GIT