Re: [Orgmode] #+HTML blocks
I guess there should not even be p /p around the image. However, fixing this is a nighmare, as is the whole html exporter sometimes. Very difficult to maintain - sometimes I think it needs re-writing from scratch. Unfortunately, its hard to find the time, and besides the exporter works reasonably well and other have higher priority. Thanks for the report. - Carsten On May 22, 2007, at 3:03, Bastien wrote: Hi again, , | #+HTML:div style=float: right; | [[file:image.jpg][file:image.jpg]] | #+HTML:/div ` is converted like this : , | div style=float: right; | p | img src=images/bentolila.jpg/ | /div | /p ` ... mixing div and p in the wrong order. An easy (but not obvious) way to circumvent this is to insert a blank line after and before the #+HTML line. For example: , | #+HTML:div style=float: right; | | [[file:images/bentolila.jpg][file:images/bentolila.jpg]] | | #+HTML:/div ` ... is gets converted as : , | div style=float: right; | | p | img src=images/bentolila.jpg/ | /p | | | /div ` ... where the tags order is correct. -- Bastien ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Carsten Dominik Sterrenkundig Instituut Anton Pannekoek Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] require-final-newline
On May 21, 2007, at 4:03, Trent Buck wrote: [Please CC replies; I'm not subscribed to this list.] I have the following in my .emacs: | ;;; If the last line is an item and you have a final newline, | ;;; collapsing item bodies will result in | ;;; | ;;; ** eat marshmallows... | ;;; | ;;; where the ellipsis is simply eliding the final newline. This | ;;; annoys me. I do not yet see what the problem is. Why is this annoying you? - Carsten Rather than fix org mode, I've opted to simply | ;;; disable implicit adding of a final newline for this mode. | (add-hook 'org-mode-hook | (lambda () | (set (make-local-variable 'require-final-newline) nil))) It would be better if org mode did this automatically. There is a facility specifically for this: | mode-require-final-newline is a variable defined in `files.el'. | | Documentation: | Whether to add a newline at end of file, in certain major modes. | Those modes set `require-final-newline' to this value when you enable them. | They do so because they are often used for files that are supposed | to end in newlines, and the question is how to arrange that. | | A value of t means do this only when the file is about to be saved. | A value of `visit' means do this right after the file is visited. | A value of `visit-save' means do it at both of those times. | Any other non-nil value means ask user whether to add a newline, when saving. | | nil means do not add newlines. That is a risky choice in this variable | since this value is used for modes for files that ought to have final newlines. | So if you set this to nil, you must explicitly check and add | a final newline, whenever you save a file that really needs one. I posit that org-mode should set this variable to nil. -- Trent Buck ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Carsten Dominik Sterrenkundig Instituut Anton Pannekoek Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] A little agenda printer script
On May 22, 2007, at 15:11, Jason F. McBrayer wrote: Carsten Dominik [EMAIL PROTECTED] writes: Great, I am happy to see an application so soon! I have problems to run it, I guess because of python. My installation did not have the subprocess module... It's in the standard library, but it's new to Python 2.4 (latest Python is 2.5). Odds are you've got Python 2.3, which is still widely deployed. Perhaps I'll rewrite in terms of os.popen, instead. Well, that is one idea, another would be to put a few pdf examples on a webpage for us to look at it. - Carsten ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Let tab do org-cycle only at special place.
I've my busy tab key set to a super expand/indent function: (global-set-key \t 'ext-super-tab) Currently in org-mode, tab is only doing indent in none headline/special place. I'd like to use tab only at the beginning of headline or buffer. So I put something like this in my org-conf.el : (defun org-tab (optional arg) Do org-cycle only at the beginning of a headline, otherwise do the job defined in global keymap. (interactive P) (let* ((outline-regexp (if (and (org-mode-p) org-cycle-include-plain-lists) \\(?:\\*+\\|\\([ \t]*\\)\\([-+*]\\|[0-9]+[.)]\\) \\) outline-regexp)) (bob-special (and org-cycle-global-at-bob (bobp) (not (looking-at outline-regexp) (if (or bob-special (eq arg t) (integerp arg) (org-at-table-p 'any) (looking-at outline-regexp)) (org-cycle arg) (call-interactively (global-key-binding \t) (define-key org-mode-map [(tab)] 'org-tab) Hope this is useful for someone else. Levin ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] require-final-newline
On Tue, May 22, 2007 at 09:34:53AM +0200, Carsten Dominik wrote: On May 21, 2007, at 4:03, Trent Buck wrote: [Please CC replies; I'm not subscribed to this list.] I have the following in my .emacs: | ;;; If the last line is an item and you have a final newline, | ;;; collapsing item bodies will result in | ;;; | ;;; ** eat marshmallows... | ;;; | ;;; where the ellipsis is simply eliding the final newline. This | ;;; annoys me. I do not yet see what the problem is. Why is this annoying you? It annoys me because the ... indicate that text is being hidden, but in fact the only hidden data is a single newline. - Carsten Rather than fix org mode, I've opted to simply | ;;; disable implicit adding of a final newline for this mode. | (add-hook 'org-mode-hook | (lambda () | (set (make-local-variable 'require-final-newline) nil))) It would be better if org mode did this automatically. There is a facility specifically for this: | mode-require-final-newline is a variable defined in `files.el'. | | Documentation: | Whether to add a newline at end of file, in certain major modes. | Those modes set `require-final-newline' to this value when you enable them. | They do so because they are often used for files that are supposed | to end in newlines, and the question is how to arrange that. | | A value of t means do this only when the file is about to be saved. | A value of `visit' means do this right after the file is visited. | A value of `visit-save' means do it at both of those times. | Any other non-nil value means ask user whether to add a newline, when saving. | | nil means do not add newlines. That is a risky choice in this variable | since this value is used for modes for files that ought to have final newlines. | So if you set this to nil, you must explicitly check and add | a final newline, whenever you save a file that really needs one. I posit that org-mode should set this variable to nil. -- Trent Buck signature.asc Description: Digital signature ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Let tab do org-cycle only at special place.
I've my busy tab key set to a super expand/indent function: (global-set-key \t 'ext-super-tab) Currently in org-mode, tab is only doing indent in none headline/special place. I'd like to use tab only at the beginning of headline or buffer. So I put something like this in my org-conf.el : (defun org-tab (optional arg) Do org-cycle only at the beginning of a headline, otherwise do the job defined in global keymap. (interactive P) (let* ((outline-regexp (if (and (org-mode-p) org-cycle-include-plain-lists) \\(?:\\*+\\|\\([ \t]*\\)\\([-+*]\\|[0-9]+[.)]\\) \\) outline-regexp)) (bob-special (and org-cycle-global-at-bob (bobp) (not (looking-at outline-regexp) (if (or bob-special (eq arg t) (integerp arg) (org-at-table-p 'any) (looking-at outline-regexp)) (org-cycle arg) (call-interactively (global-key-binding \t) (define-key org-mode-map [(tab)] 'org-tab) Hope this is useful for someone else. Levin ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] replacing from overviews
Hi, I like search-and-replace. When replacing in an org-mode file, I always have to expand the file fully first, since there is no fancy on-the-fly expansion (the way there is with i-searches). Is this a planned feature? It'd be mighty handy... -- Kevin Brubeck Unhammer Sendt med Operas revolusjonerende e-postprogram: http://www.opera.com/mail/ ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] require-final-newline
To be honest, I am not sure that this is the right solution. For some operations in org-mode, like structure editing, that final newline is good to have. Also, this issue with the final newline is depending on personal preferences. I tend to believe that the better solution is to fix outlining, so that it will never hide empty lines at the end of the buffer. Hope you can agree if I implement that latter solution. - Carsten On May 21, 2007, at 4:03, Trent Buck wrote: [Please CC replies; I'm not subscribed to this list.] I have the following in my .emacs: | ;;; If the last line is an item and you have a final newline, | ;;; collapsing item bodies will result in | ;;; | ;;; ** eat marshmallows... | ;;; | ;;; where the ellipsis is simply eliding the final newline. This | ;;; annoys me. Rather than fix org mode, I've opted to simply | ;;; disable implicit adding of a final newline for this mode. | (add-hook 'org-mode-hook | (lambda () | (set (make-local-variable 'require-final-newline) nil))) It would be better if org mode did this automatically. There is a facility specifically for this: | mode-require-final-newline is a variable defined in `files.el'. | | Documentation: | Whether to add a newline at end of file, in certain major modes. | Those modes set `require-final-newline' to this value when you enable them. | They do so because they are often used for files that are supposed | to end in newlines, and the question is how to arrange that. | | A value of t means do this only when the file is about to be saved. | A value of `visit' means do this right after the file is visited. | A value of `visit-save' means do it at both of those times. | Any other non-nil value means ask user whether to add a newline, when saving. | | nil means do not add newlines. That is a risky choice in this variable | since this value is used for modes for files that ought to have final newlines. | So if you set this to nil, you must explicitly check and add | a final newline, whenever you save a file that really needs one. I posit that org-mode should set this variable to nil. -- Trent Buck ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Carsten Dominik Sterrenkundig Instituut Anton Pannekoek Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: newbie has some questions
Hi Carsten, Carsten Dominik schrieb am 05/20/2007 09:56 PM: Hi Fabian, On May 20, 2007, at 22:45, Fabian Braennstroem wrote: Hi, it's me again ... are my questions to stupid or does nobobdy have an idea? neither nor - we are just too lazy or too busy. No problem ... * Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi, I am a new user of org-mode; so far I am pretty expressed... I spread my todos into about 6 different main categories, each in an own file. So far it works pretty good, but I am kind of curious, when the lists get bigger... For the dayly use I have some questios: - can I use different colors for the keywords TODO, FEEDBACK, VERIFY, CANCEL and DONE in every buffer (agenda too) No, this is currently not supported. You could hack it in using font-lock-add-keywords, but there is currently no support for this in Org-mode. That is probably a good work-around; thanks. - how can I sort the agenda todo list according to the priority It is sorted according to priority - but only within categories. If you want it to ignore categories and sort by priority only, you need to configure `org-agenda-sorting-strategy' to something like this (this is the default setting, but with the part for the todo list modified): (setq org-agenda-sorting-strategy '((agenda time-up category-keep priority-down) (todo priority-down) (tags category-keep priority-down)) Thanks, works well. - can I add priority 'd' to the list Yes: (setq org-lowest-priority ?D) This too :-) Try `M-x org-customize RET' to find out more about the many options. - when you use the multiple file approach, do you use a lot of tags, or is it more usefull for a single file approach This is a matter of taste, and different people use different approaches. See the org-mode homepage for links to some of the discussions that happened here on this list. - can somebody explain the 43 folder approach Google is your friend http://wiki.tcl.tk/13200 and how it is used with org-mode Org-mode has no direct support for a 43 folders setup - anyway, 43folders is, I thknk, mostly useful as structure in real paper, not on a computer. Hope this helps. It helped; thanks a lot! Greetings! Fabian ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode