org-mode

How to test for org-todo state “xyz” with deadline not equal to today

二次信任 提交于 2019-12-24 01:47:38
问题 What is the best way, please, to test for the existence of a specific todo state and a deadline that is not equal to today? org-state is a "[h]ook which is run after the state of a TODO item was changed". So unless I'm actually changing the state of a todo, I don't think I can use (string-equal org-state "Next Action") . Each of my string-equal lines of code listed below are rejected: Symbol's value as variable is void: org-todo and org-deadline . The deadline is a line that appears

org-deadline — change all in selected block in one fell swoop

怎甘沉沦 提交于 2019-12-24 00:33:35
问题 Could someone please steer me in the right direction towards automating this function so that I only type the date one time (or select it with the mouse from the built-in popup calendar) and hit the return key, and then it repeats the process all by itself until finished. (setq org-loop-over-headlines-in-active-region t) (defun change-all-deadlines () "Change all deadlines in the group of tasks that are selected / highlighted." (interactive) (org-deadline) (org-map-entries) (let (new-date

Use orgmode agenda content in html

非 Y 不嫁゛ 提交于 2019-12-23 23:03:56
问题 I am working on an agenda and orgmode works great in all of senses. Unfortunatelly I am stalled in one point: to export orgmode agenda content to HTML. I know how to export the .org to ics and it works fine. I know how to export the .org to html and it also works. But when you export .org to HTML you miss the content of the agenda. I mean, if I have schedulled an event, it is like: * Convocatoria de Proyectos Visualizar15 DEADLINE: <2015-04-05 dom> http://medialab-prado.es/article

refiling to a given subtree by a keybinding

笑着哭i 提交于 2019-12-23 17:31:31
问题 The problem is probably very simple, but I'm struggling because I am new to ELISP. I want to have a keybinding to refile current subtree to subtree TRASH. I have written the code, which doesn't work, though. Could you please help me to fix it? Thanks in advance! The code: (defun org-move-to-trash() (org-refile "TRASH") ;; the function fails here because the parameter has to be specified in a different way. But how? ) (global-set-key (kbd "C-c b") 'org-move-to-trash) 回答1: If you're interested

Change the hour when org-mode is starting new day

此生再无相见时 提交于 2019-12-23 12:41:29
问题 I use org-mode to clock my work and sometimes I work past midnight for few hours. So, for example, I clocked time starting 03.06.2013 10pm and ending 04.06.2013 2am. And org-mode is dividing it at 0am, starting new day. But it would be more convinient for me if that time 0am-2am was recorded for 03.06.2013 instead of 04.06.2013. So I want to be able to specify at what time (say, 4am) org-mode is deciding the new day has started. I can use a workaround by shifting timezone for the emacs

How to call Emacs Lisp functions in Emacs org-mode?

為{幸葍}努か 提交于 2019-12-23 12:41:01
问题 When I have elisp function (defun hello (param) ... ) how can I run the (hello abc.txt) with org mode? I learned how to link http with [[mine:...]] tag. I expect similar way, something like [[lisp:hello(abc.txt)]] or something. ADDED As this post explains, I have (runmate) and (runeditor (something)) elisp command. It works fine with alt-x runmate in emacs, but when I run [[lisp:(runmate)]] , I get the following dialog box. SOLVED It should have used [[elisp:(runmate)]] . 回答1: You're close.

org-mode: fontify code blocks natively

断了今生、忘了曾经 提交于 2019-12-23 12:20:15
问题 I can't get org-mode to fontify code blocks the way it should...I'm using Gnu Emacs 23.3.1 on cygwin and I tried it on same version WinNT. In my init file: (setq org-src-fontify-natively t) Then I expect blocks like this to fontified like sql-mode: #+BEGIN_SRC sql SELECT * FROM foo; #+END_SRC The contents of the block are shown in a different face to normal text, but no keyword highlighting etc. The same goes for other languages. Any ideas? 回答1: My org-mode is too old (6.33x, which ships with

Synchronizing files in Emacs

≡放荡痞女 提交于 2019-12-23 04:38:08
问题 I am new to Emacs and I am not very good with computing. However I discovered Emacs few weeks ago and I am absolutely amazed with possibilities that it has. I am looking forward to use it for LaTeX documents editing, some programing, creating my own elisp functions and of course creating plans and notes with org-mode. The main inconvenience for me is that I am using Emacs at several places (my laptop, home and work computers). At work I am unauthorized to install software. If i make some

Customize interface for org-capture-templates

梦想的初衷 提交于 2019-12-23 03:26:48
问题 Started using org-mode and I've gotten to configuring the org-capture template. Would like to get a simple set-up going for starters. I've bound 'org-capture to C-c c so C-c c C gives me the org-capture-templates interface - supposedly a good way to configure a template. But how do I interact with this interface? Consulted the org-manual but haven't found mention how how the customize interface actually work ... 回答1: In the customize buffer click on INS button it is just below the Org Capture

org-protocol formatting selected text

≯℡__Kan透↙ 提交于 2019-12-22 18:26:10
问题 When you capture through org-protocol and a browser, either through the capture(); function or encodeURIComponent(window.getSelection()); , the text appears to be passed to the Emacs org-protocol server as plain text. Is there a way to pull in some of the HTML heading/CSS style info to keep a minimal amount of formatting for readability? Most sites aren't anything close to plain text, so even selecting across a heading and a couple paragraphs comes out like garbage. edit: I found pandoc,