Re: [O] org-cook
thank you all for the great answers Fletcher, your idea sounds great, but why not use org tables as people suggested for ingredients. ive started using it yesterday and im very pleased, in example: *** COOK Pancakes:American: :PROPERTIES: :Source: TV :Serves: :Time: :Rating: :Fav: :END: | Quantity | scale | Ingredient| Instructions | |--+---+---+--| |8 | | eggs | | |1 | liter | milk | | | 350 | g | butter| melted | | 730 | g | flour | | | 90 | g | powderd sugar | | | 60 | g | baking powder | | | 10 | g | salt | | _*Directions*:_ best Z On Mon, Mar 17, 2014 at 4:22 PM, Fletcher Charest < fletcher.char...@gmail.com> wrote: > Hello everyone, > > Since we are on this subject, are you aware of any package that would make > an 'automatic' shopping list based on recipes? My idea was to record > recipes in this format: > > * Name of the recipe :tag: > > 1) Step one. > 2) Step two. > 3) Step three. > > :PROPERTIES: > :ingredient_1: quantity > :ingredient_2: quantity > :ingredient_3: quantity > :END: > > Tags could be anything, be mainly things like 'breakfast', 'main course' > or 'dessert'. Then, with the point on the headline, (in the file buffer or > in the agenda buffer), you could call a function that would add the > ingredient to a list, or increment its quantity if the ingredient is > already there. Maybe a function to add a random number of recipes (through > a filter or not) to the shopping list would be nice too, if you don't know > what to cook in a particular week. > > I'm planning to do this but my Elisp-fu is not great... Any tips of how > implementing this? Are lists a good data structure for stocking the > shopping list, before dumping it in a buffer? > > FC > > > On Sun, Mar 16, 2014 at 1:40 AM, Robert Horn wrote: > >> I also use tables, and have one big recipe.org file. I considered >> ingredient properties, etc., but ended up just text and find recipes by >> using simple searches. They look like this: >> >> * Texas Skillet Corn Bread >> >> | Ingredient | Quantity | Instructions| >> |+--+-| >> | Bacon drippings or oil | 1/4 cup | | >> | Yellow CornMeal| 1 cup| | >> | All Purpose Flour | 1 cup| | >> | Salt | 1/2 tsp | | >> | Baking Power | 1 tsp| | >> | Baking Soda| 1 tsp| | >> | Sugar | 1 tbs| optional| >> | Buttermilk | 1 cup| | >> | Eggs | 2| slightly beaten | >> |+--+-| >> >> 1. Heat drippings in iron skillet >> >> 2. In large mixing bowl, mix cornmeal, flour, salt, baking x, and sugar. >> >> 3. Add buttermilk and stir rapidly. >> >> 4. Add eggs and mix >> >> 5. Add drippings >> >> 6. Pour into skillet, cover, and cook on low heat until lightly >> browned and almost cooked through. >> >> >> >
Re: [O] org-cook
Thanks so much for the tips Erik i will explore the ingredients in table idea as suggested. do you know perhaps of a way to quick format online recipes to an org table (that is webpage html to org table) or perhaps a way to convert already entered recipes in my org files to tables kind regards Z. On Sat, Mar 15, 2014 at 7:38 PM, Erik Hetzner wrote: > At Sat, 15 Mar 2014 09:24:23 +0200, > Xebar Saram wrote: > > > > Dear Eric and org users > > > > i am a new(ish) org user and an avid cooker. i have started using > > orgmodeas my recipe notebook and stumbled upon the old org-cook > > thread. > > Is there so documentation on this? do you still use it? > > are there any other ideas/suggestions on using orgmode as a recipe > notebook? > > what i would mainly love is a way to "scrape" recipes off websites into > org > > Hi Xebar, > > I still use org to manage my recipes, but I don't use the org-cook > features. It was kind of a proof of concept, and I think it could > prove useful, but it turns out I don't often need to convert between > units. > > I have been trying out the format described in [1]. I used to use a > format like: > > Grate zest from 3 of them. Combine. Add: > - 2 tbsp peanut oil > - 2 chicken bouillon cubes, crumbled > - 5 onions, thinly julienned > - salt and pepper > > But the new one looks like: > > Grate zest from 3 of them. Combine. Add: > | 2 tbsp | peanut oil | | > | 2 cubes | chicken bouillon | crumbled | > | 5 | onions, | thinly julienned | > | | salt and pepper | | > > I think the table structure should make it easier to manipulate, > change units, or create shopping lists. (But I create shopping lists > by hand.) > > One hack I do use is the following function: > > (defun org-random-element () > "Choose a random element from the buffer." > (interactive) > (let ((element-start -1) > (count 1)) > (while (not (org-first-sibling-p)) > (org-goto-sibling t)) > (save-excursion > (while (org-goto-sibling) > (setq count (+ 1 count > (org-forward-heading-same-level (random count > > This chooses a random element from a list of headings. I use this to > plan meals. I just keep running the function until I see something > that I feel like cooking. > > Hope that helps! > > best, Erik > > 1. > http://sachachua.com/blog/2012/06/emacs-org-grocery-lists-batch-cooking/ > > -- > Sent from my free software system <http://fsf.org/>. >
Re: [O] capture takes ~ 10-20 seconds to load a capture-template
Sorry about that the org version in emacs -q is version 7.9.3f. i have tried with this capture (setq org-capture-templates (quote ( ("x" "todo_nix" entry (file+headline "~/org/files/agenda/TODO.org" "Linux") "* %^{Description}" ) ))) i do see that when i choose the capture template it does say something about loading vc-git, i dont know if that has to do with anything thx alot, would be happy to give any additional info needed best Z On Sat, Mar 15, 2014 at 11:14 AM, Bastien wrote: > Hi Xebar, > > Xebar Saram writes: > > > i tried it with 1 template and its still the same slowness > > also i tried it with emacs -q (pasting the capture template, > > evaluating it and running org-capture) and its still very slow > > i would be happy to try and test and other things needed > > So let's start with your attempt at making it work with emacs -q. > > Note: if you use emacs -q Org version cannot be 8.2.5h, it will be > something else, please tell us what. > > Please give us *one* capture template that takes too long with > emacs -q and maybe someone can reproduce. Don't do fancy stuff > like narrowing or whatever before calling capture. > > -- > Bastien >
Re: [O] capture takes ~ 10-20 seconds to load a capture-template
Hi Bastien thanks for the help i am running org 8.2.5h with emacs 24.3.1 i tried it with 1 template and its still the same slowness also i tried it with emacs -q (pasting the capture template, evaluating it and running org-capture) and its still very slow i would be happy to try and test and other things needed best Z. On Sat, Mar 15, 2014 at 10:42 AM, Bastien wrote: > Hi Xebar, > > can you try with only one template? Then report your Org > version and your Emacs version? Also, let us know if you > have the problem with a bare emacs (emacs -q). > > -- > Bastien >
[O] capture takes ~ 10-20 seconds to load a capture-template
Hi all I have a weird issue i really dont know how to debug. i have managed to get org-capture working very well to my needs. only issue is when I launch org-capture (C-c c) and choose a capture template it takes around 10-20 seconds to load the capture-template. it happens with any capture templeates i try. any idea whats causing this? here is my current capture config #+BEGIN_SRC emacs-lisp :results non (setq org-capture-templates (quote ( ("x" "todo_nix" entry (file+headline "~/org/files/agenda/TODO.org" "Linux") "* %^{Description}" ) ("o" "dl_movie" entry (file+headline "~/org/files/agenda/ dl.org" "Movies") "* %^{Description} " ) ("O" "dl_movie_prerelease" entry (file+headline "~/org/files/agenda/dl.org" "Movies") "* %x :Pre_Release: " ) ("v" "dl_TV" entry (file+headline "~/org/files/agenda/dl.org" "TV") "* %^{Description}" ) ("m" "dl_music" entry (file+headline "~/org/files/agenda/ dl.org" "Music") "* %^{Description}" ) ("h" "todo_home" entry (file+headline "~/org/files/agenda/TODO.org" "Home") "* %?\n%T" ) ("b" "todo_shopping" entry (file+headline "~/org/files/agenda/food.org" "shopping") "* SHOP %^{Description} " ) ;;;agenda captures ("w" "Work_short_term" entry (file+headline "~/org/files/agenda/Research.org" "Short term Misc") "* TODO %^{Description} " ) ))) #+END_SRC best Z
[O] org-cook
Dear Eric and org users i am a new(ish) org user and an avid cooker. i have started using orgmodeas my recipe notebook and stumbled upon the old org-cook thread. Is there so documentation on this? do you still use it? are there any other ideas/suggestions on using orgmode as a recipe notebook? what i would mainly love is a way to "scrape" recipes off websites into org thanks alot Z
Re: [O] Is anyone spending money for Org-mode?
+1 for Bastien for what its worth (im a relatively neewb but Bastien has been truly epic in helping new users) best Z On Wed, Mar 12, 2014 at 9:32 PM, Sebastien Vauban wrote: > Hello Carsten, > > > I am still receiving donations for Org-mode, even though right now I am > > only formally the maintainer of Org (it is very difficult to make time > free > > for me, currently). I would like to pass donations on to someone here > who > > has expenses related to Org, because this does not feel right anymore. > > I'd say that Bastien and Nicolas should be in that list, for sure. > > > We used to have to pay for webhosting (which was generously donated by > > Jason), but dreamhost is hosting us now for free. Therefore i am not > aware > > of any costs beyond the $15/yr I am paying for the domain. Please let me > > know if you know a good way to spend donations at this moment. > > Best regards, > Seb > > -- > Sebastien Vauban > > >
Re: [O] advice on ways to quicken refiling..perhaps a hotkey to refile to specific org file/header?
I can post the code on github if anyone's interested in the details. yes please :) thx! Z On Tue, Mar 11, 2014 at 5:09 PM, Oleh wrote: > > > On Tue, Mar 4, 2014 at 6:19 PM, Xebar Saram wrote: > > Thx Oleh > > you said you dont refile much latley, is there a better solution ;-) > > > There is, actually. > It's quite simple: capture all the tasks into the proper place right away, > instead of dumping them into one place and sorting out later. > > Firstly, there's capturing into project. > A project is just a heading at gtd.org/Projects/project-name. > Once a task is in a project, there's rarely any need to refile it. > I tag each task with the project tag anyway, just in case. > The project setup is a list entry like this: > > '("TINY" "y" "tiny.el") > > That's the tag, key binding and heading name. I push this data into > `org-capture-templates`. > Now I can capture into project gtd.org/Projects/tiny.el with "C-- y". > > Secondly, there's a special capture for pdf files, I've posted it on > the list before. > > Thirdly, there are captures from `org-protocol`. I have this setup: > > (setq org-protocol-default-template-key "l") > (push '("l" "Link" entry (function org-handle-link) > "* TODO %(org-wash-link)\nAdded: %U\n%(org-link-hooks)\n%?") > org-capture-templates) > > `org-handle-link` will distinguish: > > 1. Links for StackOverflow questions, putting them in wiki/ stack.org/Questions. > 2. Links to YouTube, downloading the video with `youtube-dl` and including both >the link to the original and the downloaded videos in the captured item. >I highly recommend `youtube-dl`: watching videos in vlc compared to firefox >is like editing in Emacs compared to gedit:) > 3. All the rest will be dumped into ent.org/Articles. > > `org-wash-link` currently just strips the unnecessary " - Stack > Overflow" from the link description, since the task is already in > wiki/stack.org/Questions. It's possible to add other rules per website > of course. > > Hopefully some of the described tricks are useful. > I can post the code on github if anyone's interested in the details. > > regards, > Oleh
Re: [O] automatic scheduling of next task in project
Hi Peter and all Peter you wrote: I can flatten this list into a list of TODO and I can store it as a separate project that will be incorporated into the agenda view Do you mind giving a short example on how thats done? id be very interested in using this myself best Z On Thu, Mar 6, 2014 at 4:13 PM, Matt Lundin wrote: > Karl Voit writes: > > > * Peter Rayner wrote: > >> I would like org-mode to remind me automatically of the next task in a > >> project. Perhaps an example will help. I'll use outline headings to > >> show the levels of tasks > > > > Auto-scheduling might be difficult. > > > > In my workflows I am using dependencies with :BLOCKER: and settings > > SCHEDULED dates roughly but on the aggressive side. > > > > With (setq org-agenda-dim-blocked-tasks t) I get them all on my > > agenda. You just have to learn to visually ignore the dimmed tasks. > > From time to time I re-check dimmed tasks for the reason why they > > are dimmed/blocked to find dead-ends. > > You can also set org-agenda-dim-blocked-tasks to 'invisible, which will > remove blocked tasks entirely from the agenda. Then, you could add the > property ":ORDERED: t" to the heading and schedule them (for the diary > agenda) or mark them NEXT/TODO (for the todo list). This would cause > each event to appear on the agenda after the blocking task is marked > done. > > > An additional/other approach would be the use of :TRIGGER: > > chain-siblings(NEXT) in order to move the NEXT state from a finished > > task to the next one. > > Or, since the OP is using org-depend.el (in contrib), he could also use > :TRIGGER: chain-siblings-scheduled(NEXT). > > Best, > Matt > >
Re: [O] advice on ways to quicken refiling..perhaps a hotkey to refile to specific org file/header?
Thx Oleh you said you dont refile much latley, is there a better solution ;-) the ido thing is not bad but i really think i preffer key to quick send the heading to a specific note, is that possible? best Z On Tue, Mar 4, 2014 at 5:49 PM, Oleh wrote: > I have this in my config, although I don't refile that much lately: > > (setq org-refile-targets > '((nil :maxlevel . 3) > (org-agenda-files :maxlevel . 3))) > > This should give you an ido choice of all headings up to level 3 in > all your agenda files > as refile targets. Then just give a few headings a unique enough name > and you're done. > > regards, > Oleh > > On Tue, Mar 4, 2014 at 4:43 PM, Xebar Saram wrote: > > Hi all > > > > i find the normal C-c w then manually choosing a file to allocate each > > 'capture' pretty slow. i am looking for any advice on workflows you guys > > have to make this quicker. > > > > one thing i was thinking of was maybe assigning a hotkey to do a refile > to a > > specific note/heading. so ill have 5-6 hotkeys to my most common files to > > speed things up, can this be done? if so can anyone show my an example of > > such a thing? > > > > kind regards > > > > Z. >
[O] advice on ways to quicken refiling..perhaps a hotkey to refile to specific org file/header?
Hi all i find the normal C-c w then manually choosing a file to allocate each 'capture' pretty slow. i am looking for any advice on workflows you guys have to make this quicker. one thing i was thinking of was maybe assigning a hotkey to do a refile to a specific note/heading. so ill have 5-6 hotkeys to my most common files to speed things up, can this be done? if so can anyone show my an example of such a thing? kind regards Z.
Re: [O] binding org-id-goto to a key
Thx Bastien as always your answers are spot on and brilliant. i want to personally thank you again for everything you've contributed to the community in the past years, anytime i read a blog post of yours or a post in the mailing lists its always such a joy. its really appreciated! best Z On Sat, Mar 1, 2014 at 9:01 AM, Bastien wrote: > Hi Xebar, > > Xebar Saram writes: > > > im trying to bind some headers to specific keys using the org-id-goto > > command and so far have this: > > > > (global-set-key (kbd " l") 'org-id-goto > > "8460d499-ea32-4693-a8d4-0d08b00ba3f3") > > > > but im aware that this code isnt wrong. can anyone guide me in the > > right direction? > > (global-set-key (kbd "C-") > (lambda () > (interactive) > (org-id-goto "8460d499-ea32-4693-a8d4-0d08b00ba3f3"))) > > > For (kbd " l") to work, you need to have f9 to be a prefix key, > so I changed it to (kbd "C-") for my own test. > > (lambda () ...) is an anonymous function. > > (interactive) makes the function an interactive command, which is > needed for the form to be bound to the key. > > HTH, > > -- > Bastien >
[O] binding org-id-goto to a key
hi all im trying to bind some headers to specific keys using the org-id-goto command and so far have this: (global-set-key (kbd " l") 'org-id-goto "8460d499-ea32-4693-a8d4-0d08b00ba3f3") but im aware that this code isnt wrong. can anyone guide me in the right direction? best Z
[O] Fwd: differnace between org-id and internal links
Gotcha thx. a related question. can i map a command to open a specific header then (an org-id) one to a keybind? thx Z On Tue, Feb 25, 2014 at 9:24 PM, Oleh wrote: > > Hya all. i cant understand what the advantages of org-id links over > internal > > ones? > > in both cases it uses a fixed path right? its not like if i move my org > > files to another PC with different paths then the links will all work? > whats > > the use case scenario to use org-id over internal links? > > > > As far as I understand, id links are unique, so you can have multiple > headings with same name, and move them about as much you like within > current file > or multiple files. You can't do that with plain links which are *very* > inflexible > and become stale fast. > > Your scenario with another PC should also work, as org will search for > the needed id > across all known org files. So as long as the file you move across > different PCs > is in the search path, the links will still work. > > regards, > Oleh >
[O] differnace between
Hya all. i cant understand what the advantages of org-id links over internal ones? in both cases it uses a fixed path right? its not like if i move my org files to another PC with different paths then the links will all work? whats the use case scenario to use org-id over internal links? thanks alot in advance Z
Re: [O] [ANN] Firefox extension for org-protocol and org-capture
hya yeah i mean several windows sorry :) a check box or an option on the command line would be epic thx again! Z On Sat, Feb 22, 2014 at 2:58 PM, Olivier Schwander < olivier.schwan...@chadok.info> wrote: > Le 21 Feb 2014 19:06, Xebar Saram a écrit: > > one thing though, is there a way to define which client it oepns? i have > > several emacs client opened at once and prefer the extension nowt to use > a > > current one but pop up a new CLI emacsclient for quick adding which will > go > > away after i finish capturing, is that possible? > > Several Emacs client open ? You mean several Emacs windows and you want > to open a new one, right ? Is calling emacsclient with the -c flag > enough for your need ? Or do you want the -nw flaf ? In that case, I > will need to launch something like "xterm -e 'emacsclient -nw ...'". > > I may add either a simple checkbox for creating a new window, or allow > to add option on the command line, or even give full control on the > command line which is called. > > Olivier >
Re: [O] [ANN] Firefox extension for org-protocol and org-capture
wow Olivier thanks so much, ive been waiting for something like this for ages :), never managed to get the registering the protocol parts working. one thing though, is there a way to define which client it oepns? i have several emacs client opened at once and prefer the extension nowt to use a current one but pop up a new CLI emacsclient for quick adding which will go away after i finish capturing, is that possible? best and thx alot! Z thx alot! Z On Fri, Feb 21, 2014 at 6:41 PM, Olivier Schwander < olivier.schwan...@chadok.info> wrote: > Le 21 Feb 2014 16:43, Rasmus a écrit: > > So what do I do after installing it? I get a new button but nothing > > happens when I click it. > > Do you have emacs server and org-protocol enabled ? Something like this > in your .emacs: > > (server-start) > (require 'org-protocol) > > If not, you should add these two lines and maybe have a look on worg: > http://orgmode.org/worg/org-contrib/org-protocol.html > > You can also test manually in a shell with: > > emacsclient org-protocol://capture://example.com/Example/ > > (It is exactly what does the add-on) > > Best, > > Olivier > > >
Re: [O] exporting a shopping list to my android phone?
would also be very interested in such a workflow! z On Fri, Nov 29, 2013 at 12:19 AM, Matt Price wrote: > I just asked this question I guess, but: I do most everything in org, > including composing shopping and packing lists, and so forth. > Occasionally I would like to access these on my phone. From what I > can tell, org-mobile doesn't do quite what I want which is to let me > toggle the state of a checkbox with my thumb as I throw something into > a shopping cart, or pack a piece of clothing or rock climbing gear, or > whatever. > > Does someone else out there have a workflow for this task they can > recommend? If so I'd appreciate it! Thanks, > Matt > >
[O] hide leading starts in a specific sub-tree in an org file
Hi all i know there is an option to hiding leading stars in outline headings, and for indenting outlines. i was wondering if there is an option to do so for a specific header and sub headers (like can be done for some properties etc.. in example have these 2 structures in 1 org file * header 1 * header 2 * header 3 * header 1 ** header 1 *** header 1 thx! Z
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
hehe, works like a charm now :) thx again Eric! have a great day Z On Mon, Nov 4, 2013 at 6:03 AM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thank you Eric and Jambunathan > > > > Eric: i tried with the added backslash but that dosent seem to work > > as well, would you mind testing the snippet below on your system? is > > it still something wrong im doing? > > > > ;test > > (font-lock-add-keywords > > 'org-mode > > '(("\\b[Ss]alt\\b)" (0 '(:weight ultra-bold :foregroun "#FF9800") > > t > > What!? You mean I should actually test my suggestions!? :) > > You've got one more typo I didn't see -- there's a spurious close > parenthesis at the end of the regexp, just inside the quote. I promise I > actually tried it this time, and taking that parenthesis out works! > > E > > > Jambunathan: hi-lock-mode looks interesting and i will investigate > > it soon, is it per file settings, or can you define a word/fg-bg rule > > that will apply to all files? > > > > thanks alot guys, really appreciate it! > > > > > > > > On Sun, Nov 3, 2013 at 6:15 AM, Eric Abrahamsen < > > e...@ericabrahamsen.net> wrote: > >> > >> Xebar Saram writes: > >> > >> > Thanks Eric , really appreciate the continuous help! > >> > > >> > i do plan to get into rexeg on the future (i promise :)) but real > >> > life now just allow me to allocate time (i started an assistant > >> > professor position and time is at a huge premium..). > >> > > >> > i tried using this as i tried to understand from your email, but > > i > >> > guess im again doing something wrong. shouldn't the below example > >> > color "salt", it dosent see to work. > >> > > >> > ;test > >> > (font-lock-add-keywords > >> > 'org-mode > >> > '(("\b[Ss]alt\\b)" (0 '(:weight ultra-bold :foregroun "#FF9800") > >> > t > >> > >> Looks like you're missing a backslash at the beginning of the > > regexp -- > >> make sure it reads "\\b... > >> > >> E > >> > >> > thank you for all your help > >> > > >> > > >> > > >> > On Sat, Nov 2, 2013 at 12:15 PM, Eric Abrahamsen < > >> > e...@ericabrahamsen.net> wrote: > >> > > >> > Xebar Saram writes: > >> > > >> > > Hi again all > >> > > > >> > > i have been using the before discussed font lock with great > >> > success > >> > > over the past few weeks, thx alot for that tip! > >> > > > >> > > one short question i have from using it thourhgly is > > weather > >> > its > >> > > possible to color specific words , IE not just text bound > >> > between > >> > > symbols ( ie > !text! ) but rather lets say i always want > > to > >> > make the > >> > > word server appear with blue FG. is this possible? > > currently i > >> > tried > >> > > > >> > > (font-lock-add-keywords > >> > > 'org-mode > >> > > '(("\\(server[^server\n]+server\\)" (0 '(:foreground "# > > 00" > >> > > :underline t :background "#FF9AEA" :weight ultra-bold) > > t > >> > > >> > At some point you're definitely going to want to read up on > >> > regular > >> > expressions! > >> > > >> > But in the meantime yes, it's entirely (mostly) possible. A > >> > regular > >> > expression is just a way of finding desired pieces of text in > > a > >> > larger > >> > run of text. Think of the regexp as an instruction that > > starts: > >> > "Find > >> > all pieces of text that are..." > >> > > >> > All the special regexp characters are just a way of making > > the > >> > instruction general (_any_ number, four of _any_ character, > >> > _anything_ > >> > that's not a "p"). > >> > > >> > In the most basic case, however, a regexp is simply the text >
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Thank you Eric and Jambunathan Eric: i tried with the added backslash but that dosent seem to work as well, would you mind testing the snippet below on your system? is it still something wrong im doing? ;test (font-lock-add-keywords 'org-mode '(("\\b[Ss]alt\\b)" (0 '(:weight ultra-bold :foregroun "#FF9800") t Jambunathan: hi-lock-mode looks interesting and i will investigate it soon, is it per file settings, or can you define a word/fg-bg rule that will apply to all files? thanks alot guys, really appreciate it! On Sun, Nov 3, 2013 at 6:15 AM, Eric Abrahamsen wrote: > > Xebar Saram writes: > > > Thanks Eric , really appreciate the continuous help! > > > > i do plan to get into rexeg on the future (i promise :)) but real > > life now just allow me to allocate time (i started an assistant > > professor position and time is at a huge premium..). > > > > i tried using this as i tried to understand from your email, but i > > guess im again doing something wrong. shouldn't the below example > > color "salt", it dosent see to work. > > > > ;test > > (font-lock-add-keywords > > 'org-mode > > '(("\b[Ss]alt\\b)" (0 '(:weight ultra-bold :foregroun "#FF9800") > > t > > Looks like you're missing a backslash at the beginning of the regexp -- > make sure it reads "\\b... > > E > > > thank you for all your help > > > > > > > > On Sat, Nov 2, 2013 at 12:15 PM, Eric Abrahamsen < > > e...@ericabrahamsen.net> wrote: > > > > Xebar Saram writes: > > > > > Hi again all > > > > > > i have been using the before discussed font lock with great > > success > > > over the past few weeks, thx alot for that tip! > > > > > > one short question i have from using it thourhgly is weather > > its > > > possible to color specific words , IE not just text bound > > between > > > symbols ( ie > !text! ) but rather lets say i always want to > > make the > > > word server appear with blue FG. is this possible? currently i > > tried > > > > > > (font-lock-add-keywords > > > 'org-mode > > > '(("\\(server[^server\n]+server\\)" (0 '(:foreground "#00" > > > :underline t :background "#FF9AEA" :weight ultra-bold) t > > > > At some point you're definitely going to want to read up on > > regular > > expressions! > > > > But in the meantime yes, it's entirely (mostly) possible. A > > regular > > expression is just a way of finding desired pieces of text in a > > larger > > run of text. Think of the regexp as an instruction that starts: > > "Find > > all pieces of text that are..." > > > > All the special regexp characters are just a way of making the > > instruction general (_any_ number, four of _any_ character, > > _anything_ > > that's not a "p"). > > > > In the most basic case, however, a regexp is simply the text you > > want to > > find: "Find all pieces of text that are 'server'". In this case, > > that's > > your regexp: "server". > > > > The reason regexps are difficult, of course, is that they can't > > read > > your mind, and will find things you didn't want, and not find > > things you > > did want. So much of messing with regexps is telling them: _yes_ > > this > > too, _no_ not that. In your case, you'd probably want to put word > > boundaries around the regexp ("\b" on either side), and find both > > capitalized and lowercase instances of the word. So your > > instruction > > might be: > > > > "Find all pieces of text that are 'server' or 'Server', but only > > as a > > complete word." > > > > Which would look like > > > > "\\b[Ss]erver\\b" > > > > Give that a shot. You're jumping into the middle of something > > fairly > > complicated, so be patient and go slow! > > > > E > > > > > instead of the original > > > > > > (font-lock-add-keywords > > > 'org-mode > > > '(("\\(₆[^₆\n]+₆\\)" (0
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Thanks Eric , really appreciate the continuous help! i do plan to get into rexeg on the future (i promise :)) but real life now just allow me to allocate time (i started an assistant professor position and time is at a huge premium..). i tried using this as i tried to understand from your email, but i guess im again doing something wrong. shouldn't the below example color "salt", it dosent see to work. ;test (font-lock-add-keywords 'org-mode '(("\b[Ss]alt\\b)" (0 '(:weight ultra-bold :foregroun "#FF9800") t thank you for all your help On Sat, Nov 2, 2013 at 12:15 PM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Hi again all > > > > i have been using the before discussed font lock with great success > > over the past few weeks, thx alot for that tip! > > > > one short question i have from using it thourhgly is weather its > > possible to color specific words , IE not just text bound between > > symbols ( ie > !text! ) but rather lets say i always want to make the > > word server appear with blue FG. is this possible? currently i tried > > > > (font-lock-add-keywords > > 'org-mode > > '(("\\(server[^server\n]+server\\)" (0 '(:foreground "#00" > > :underline t :background "#FF9AEA" :weight ultra-bold) t > > At some point you're definitely going to want to read up on regular > expressions! > > But in the meantime yes, it's entirely (mostly) possible. A regular > expression is just a way of finding desired pieces of text in a larger > run of text. Think of the regexp as an instruction that starts: "Find > all pieces of text that are..." > > All the special regexp characters are just a way of making the > instruction general (_any_ number, four of _any_ character, _anything_ > that's not a "p"). > > In the most basic case, however, a regexp is simply the text you want to > find: "Find all pieces of text that are 'server'". In this case, that's > your regexp: "server". > > The reason regexps are difficult, of course, is that they can't read > your mind, and will find things you didn't want, and not find things you > did want. So much of messing with regexps is telling them: _yes_ this > too, _no_ not that. In your case, you'd probably want to put word > boundaries around the regexp ("\b" on either side), and find both > capitalized and lowercase instances of the word. So your instruction > might be: > > "Find all pieces of text that are 'server' or 'Server', but only as a > complete word." > > Which would look like > > "\\b[Ss]erver\\b" > > Give that a shot. You're jumping into the middle of something fairly > complicated, so be patient and go slow! > > E > > > instead of the original > > > > (font-lock-add-keywords > > 'org-mode > > '(("\\(₆[^₆\n]+₆\\)" (0 '(:foreground "#00" :underline t > > :background "#FF9AEA" :weight ultra-bold) t > > > > > > again i apologize for my regrex ignorance :) > > > > best > > > > Z > > > > > > > > > > On Sun, Oct 6, 2013 at 8:04 AM, Eric Abrahamsen < > > e...@ericabrahamsen.net> wrote: > > > > Xebar Saram writes: > > > > > thx again Eric > > > > > > i still have an issue with this when one of the symbols used to > > start > > > /end the highlight is used in a sentence, for example using > > your > > > code: > > > > > > (font-lock-add-keywords > > > 'org-mode > > > '(("-1-\\([^-1-]+\\)-1-" (0 '(:weight ultra-bold :background " > > # > > > DDFFDD" :foreground "#00") t > > > > > > if i write this: > > > > > > -1- this is a test of 1x1 to show higlight -1- > > > > > > it will kill the highlight, if i use the same text omitting the > > '1' > > > it works well, anyway around this issue? i thought it would > > have > > > matcehd -1- but it seems it matches also just 1 by itself > > > > > > best wishes and thx again > > > > Yup, the things inside the [^] construct, to _not_ be matched, > > are > > treated as a list of single characters. So you're saying > > "anything > > that's not a '1' or a '-'," but then you've got a '1' in the > > middle of > > the line. If you want the highlighting to include any character, > > but not > > span newlines, you could just use [^\n] instead. > > > > At this point you'll probably want to read the regular expression > > part > > of the manual: > > > > (elisp) Regular Expressions > > > > I think you mentioned you don't have a lot of programming > > experience. > > That's a bit unfortunate, since regexps aren't a great place to > > start! > > I'd recommend getting something that's "close enough", and not > > going > > down the rabbit hole of perfect. Then start at the top of the > > introduction to elisp... > > > > Good luck, > > Eric > > > > > > >
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Hi again all i have been using the before discussed font lock with great success over the past few weeks, thx alot for that tip! one short question i have from using it thourhgly is weather its possible to color specific words , IE not just text bound between symbols ( ie > !text! ) but rather lets say i always want to make the word server appear with blue FG. is this possible? currently i tried (font-lock-add-keywords 'org-mode '(("\\(server[^server\n]+server\\)" (0 '(:foreground "#00" :underline t :background "#FF9AEA" :weight ultra-bold) t instead of the original (font-lock-add-keywords 'org-mode '(("\\(₆[^₆\n]+₆\\)" (0 '(:foreground "#00" :underline t :background "#FF9AEA" :weight ultra-bold) t again i apologize for my regrex ignorance :) best Z On Sun, Oct 6, 2013 at 8:04 AM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > thx again Eric > > > > i still have an issue with this when one of the symbols used to start > > /end the highlight is used in a sentence, for example using your > > code: > > > > (font-lock-add-keywords > > 'org-mode > > '(("-1-\\([^-1-]+\\)-1-" (0 '(:weight ultra-bold :background "# > > DDFFDD" :foreground "#00") t > > > > if i write this: > > > > -1- this is a test of 1x1 to show higlight -1- > > > > it will kill the highlight, if i use the same text omitting the '1' > > it works well, anyway around this issue? i thought it would have > > matcehd -1- but it seems it matches also just 1 by itself > > > > best wishes and thx again > > Yup, the things inside the [^] construct, to _not_ be matched, are > treated as a list of single characters. So you're saying "anything > that's not a '1' or a '-'," but then you've got a '1' in the middle of > the line. If you want the highlighting to include any character, but not > span newlines, you could just use [^\n] instead. > > At this point you'll probably want to read the regular expression part > of the manual: > > (elisp) Regular Expressions > > I think you mentioned you don't have a lot of programming experience. > That's a bit unfortunate, since regexps aren't a great place to start! > I'd recommend getting something that's "close enough", and not going > down the rabbit hole of perfect. Then start at the top of the > introduction to elisp... > > Good luck, > Eric > > >
Re: [O] trying to write a guidebook for students using org , need help with formating
Hi again all so i tried playing around with the latex options, read the Latex org manual part but still confused and i still get the lines cut. the one thing that did work was using this: begin{itemize} \item testing1 the long lines testing2 the long lines testing3 the long lines testing4 the long lines testing5 the long lines testing6 the long lines \item \item \item \item \end{itemize} but that seems very cumbersome, inserting it every time, writing the lines after the \items etc.. I am really content with using the org example method. is there no way to make the exporter to pdf (latex i guess) auto wrap lines? thx alot Z On Thu, Oct 24, 2013 at 5:53 PM, Xebar Saram wrote: > Thank you all > > ill try the Latex list suggestion over the weekend as i have Zero Latex > knowledge so ill try to dig into it a bit > > Best > > z. > > > On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali > wrote: > >> Hello Xebar, >> >> On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: >> > Xebar Saram writes: >> > >> > > Thanks again guys >> > > >> > > Rick: "But a better approach would be to define your own latex list >> > > environment for >> > > program steps and use lists:" >> > > >> > > ive never used latex, do you mind expanding on that a bit? >> > > >> > > Eric: "I don't think it's cut, is it? I just tried with your example >> > > and long >> > > lines are preserved as-is (ie, quite long)" >> > > this is how it looks in my pdf export: >> > > >> > > https://paste.xinu.at/sYsMVz/ >> > >> > Oh I see -- it's latex that cuts those lines off, not the org exporter. >> > You'll probably want to go the list route then. See this link for how to >> > create a custom list environment: >> > >> > http://www.troubleshooters.com/linux/lyx/ownlists.htm >> > >> > Then do this in org, replacing "bogus" with the name of your new >> environment: >> > >> > #+ATTR_LATEX: :environment bogus >> > - this is a >> > - list with some >> > - items in it >> >> I guess you missed my response. I suggested this a couple of days back. >> Sadly I was in a hurry and could not provide precise instructions. You >> can achieve this using the enumitem package with the noitemsep option[1]. >> >> So inside Org all you need to do is add the following to the file header: >> >> #+LATEX_HEADER: \usepackage{enumitem} >> >> If you want this behaviour for all lists add the following: >> >> #+LATEX_HEADER: \setlist{nolistsep} >> >> If you only want to do this for a particular kind of list (say, >> enumerate) add the following line instead: >> >> \setenumerate{noitemsep} >> >> To control this per-list you can do: >> >> #+attr_latex: :options noitemsep >> - Step 1 >> - Step 2 >> - Step 3 >> >> For more info on other options, see the documentation for enumitem >> (`texdoc enumitem' or <http://ctan.org/pkg/enumitem>). >> >> Hope this helps, >> >> >> Footnotes: >> >> [1] See this TeX.SX question for more details: >> <http://TeX.stackexchange.com/q/10684>. >> >> -- >> Suvayu >> >> Open source is the future. It sets us free. >> >> >
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you all ill try the Latex list suggestion over the weekend as i have Zero Latex knowledge so ill try to dig into it a bit Best z. On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali wrote: > Hello Xebar, > > On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: > > Xebar Saram writes: > > > > > Thanks again guys > > > > > > Rick: "But a better approach would be to define your own latex list > > > environment for > > > program steps and use lists:" > > > > > > ive never used latex, do you mind expanding on that a bit? > > > > > > Eric: "I don't think it's cut, is it? I just tried with your example > > > and long > > > lines are preserved as-is (ie, quite long)" > > > this is how it looks in my pdf export: > > > > > > https://paste.xinu.at/sYsMVz/ > > > > Oh I see -- it's latex that cuts those lines off, not the org exporter. > > You'll probably want to go the list route then. See this link for how to > > create a custom list environment: > > > > http://www.troubleshooters.com/linux/lyx/ownlists.htm > > > > Then do this in org, replacing "bogus" with the name of your new > environment: > > > > #+ATTR_LATEX: :environment bogus > > - this is a > > - list with some > > - items in it > > I guess you missed my response. I suggested this a couple of days back. > Sadly I was in a hurry and could not provide precise instructions. You > can achieve this using the enumitem package with the noitemsep option[1]. > > So inside Org all you need to do is add the following to the file header: > > #+LATEX_HEADER: \usepackage{enumitem} > > If you want this behaviour for all lists add the following: > > #+LATEX_HEADER: \setlist{nolistsep} > > If you only want to do this for a particular kind of list (say, > enumerate) add the following line instead: > > \setenumerate{noitemsep} > > To control this per-list you can do: > > #+attr_latex: :options noitemsep > - Step 1 > - Step 2 > - Step 3 > > For more info on other options, see the documentation for enumitem > (`texdoc enumitem' or <http://ctan.org/pkg/enumitem>). > > Hope this helps, > > > Footnotes: > > [1] See this TeX.SX question for more details: > <http://TeX.stackexchange.com/q/10684>. > > -- > Suvayu > > Open source is the future. It sets us free. > >
Re: [O] trying to write a guidebook for students using org , need help with formating
Thanks again guys Rick: "But a better approach would be to define your own latex list environment for program steps and use lists:" ive never used latex, do you mind expanding on that a bit? Eric: "I don't think it's cut, is it? I just tried with your example and long lines are preserved as-is (ie, quite long)" this is how it looks in my pdf export: https://paste.xinu.at/sYsMVz/ i just want all the line to appear in the pdf and not get cut (that is have it auto wrap when the like nears a paper edge) Glyn: thx alot for the example. That does work but then i really hate manually having to add the '-' at the start of each page and then also indenting each line, is there a solution for that? i really appreciate all the help, you guys are great help! z. On Wed, Oct 23, 2013 at 5:23 PM, Glyn Millington wrote: > Xebar Saram writes: > > > Thx again Eric > > > > i actually like using the example block but as you mentioned i think the > text is cut at the end when you export it , is there anyway to > > make the exporter auto wrap lines inside example blocks? > > > Hi Xebar, > > This does seem to be getting rather complicated. Does the adapted > version of your file below give you the kind of result you want? It will > probably get munged in the sending > > atb > > Glyn > >
Re: [O] trying to write a guidebook for students using org , need help with formating
Thx again Eric i actually like using the example block but as you mentioned i think the text is cut at the end when you export it , is there anyway to make the exporter auto wrap lines inside example blocks? best z On Wed, Oct 23, 2013 at 11:56 AM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thank you Eric and Rick! > > > > Eric: > > The #+OPTIONS: \n:nil didn't do much here even using the default > > templates for export as suggested > > Sorry! Got it backwards -- it's meant to be \n:t > > But still, other responders are probably right that what you want is > actually a different kind of text type: a list or an example block. > > E > > > Rick: > > i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way > > to define wrapping text in the block? as you said using the block > > currently cuts off text towards the lines end > > > > Appreciate all the help from everyone. thanks alot! > > > > z. > > > > > > On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen < > > e...@ericabrahamsen.net> wrote: > >> > >> Xebar Saram writes: > >> > >> > Thank you all > >> > > >> > "I think `org-export-preserve-breaks' is the option you want. Try > >> > setting it in a single buffer with #+OPTIONS:\n:nil and see what > >> > happens..." > >> > > >> > that sounds interesting, but i couldn't understand how to use it > >> > (again im still an org novice:) ) > >> > do i stick this line at the start: > >> > #+OPTIONS:\n:nil > >> > > >> > is that ^^ syntax correct? > >> > >> Nearly correct -- we're the victim of unfortunate line wrapping. It > >> should look like: > >> > >> #+OPTIONS: \n:nil > >> > >> Ie, with an extra space. If you're a novice, as you say, you might > > like > >> to see the default options template for exporting. In your org > > buffer, > >> hit "C-c C-e" to get to the export dispatcher, then hit "#" for > > template > >> insertion, then pick "default". It will be a lot easier to see and > > edit > >> existing options than type them all in by hand. > >> > >> Yours, > >> Eric > >> > >> > >> > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali < > >> > fatkasuvayu+li...@gmail.com> wrote: > >> > > >> > On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: > >> > > > >> > > I'm trying to write a simple guidebook for my students in a > > GIS > >> > course. > >> > > Everything works great apart for the life of me i cant get > > the > >> > hang of > >> > > formatting and specifically how to insert (automatically?) > > line > >> > breaks so > >> > > that its discrete lines and not a paragraph. i think one > > can > >> > use '\\' to > >> > > indicate a line break but since its a guidebook "form" > > there > >> > are almost no > >> > > paragraphs and most line are 1 liners, so it seems to me > > crazy > >> > to go over > >> > > hundred lines of text and attach a \\ at the end. What am i > >> > missing here? > >> > > > >> > > i hope i made sense :) any help or documentation links > > would be > >> > really > >> > > appreciated! > >> > > > >> > > I'm attaching a short example of my org file, note that > > where i > >> > want single > >> > > lines i add a empty space between lines but still in the > >> > exporter it > >> > > creates a paragraph out of these lines > >> > > > >> > > >> > I think you are better off trying to do this with a > > specialised > >> > LaTeX > >> > class. A quick search led me to this TeX.SX question: > >> > <http://tex.stackexchange.com/q/3852>. You could also try > > using > >> > lists, > >> > just disable the bullets with an option in an #+attr_latex > > line. > >> > > >> > > >> > GL, > >> > > >> > -- > >> > Suvayu > >> > > >> > Open source is the future. It sets us free. > >> > > >> > >> > > >
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you Eric and Rick! Eric: The #+OPTIONS: \n:nil didn't do much here even using the default templates for export as suggested Rick: i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way to define wrapping text in the block? as you said using the block currently cuts off text towards the lines end Appreciate all the help from everyone. thanks alot! z. On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen wrote: > > Xebar Saram writes: > > > Thank you all > > > > "I think `org-export-preserve-breaks' is the option you want. Try > > setting it in a single buffer with #+OPTIONS:\n:nil and see what > > happens..." > > > > that sounds interesting, but i couldn't understand how to use it > > (again im still an org novice:) ) > > do i stick this line at the start: > > #+OPTIONS:\n:nil > > > > is that ^^ syntax correct? > > Nearly correct -- we're the victim of unfortunate line wrapping. It > should look like: > > #+OPTIONS: \n:nil > > Ie, with an extra space. If you're a novice, as you say, you might like > to see the default options template for exporting. In your org buffer, > hit "C-c C-e" to get to the export dispatcher, then hit "#" for template > insertion, then pick "default". It will be a lot easier to see and edit > existing options than type them all in by hand. > > Yours, > Eric > > > > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali < > > fatkasuvayu+li...@gmail.com> wrote: > > > > On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: > > > > > > I'm trying to write a simple guidebook for my students in a GIS > > course. > > > Everything works great apart for the life of me i cant get the > > hang of > > > formatting and specifically how to insert (automatically?) line > > breaks so > > > that its discrete lines and not a paragraph. i think one can > > use '\\' to > > > indicate a line break but since its a guidebook "form" there > > are almost no > > > paragraphs and most line are 1 liners, so it seems to me crazy > > to go over > > > hundred lines of text and attach a \\ at the end. What am i > > missing here? > > > > > > i hope i made sense :) any help or documentation links would be > > really > > > appreciated! > > > > > > I'm attaching a short example of my org file, note that where i > > want single > > > lines i add a empty space between lines but still in the > > exporter it > > > creates a paragraph out of these lines > > > > > > > I think you are better off trying to do this with a specialised > > LaTeX > > class. A quick search led me to this TeX.SX question: > > <http://tex.stackexchange.com/q/3852>. You could also try using > > lists, > > just disable the bullets with an option in an #+attr_latex line. > > > > > > GL, > > > > -- > > Suvayu > > > > Open source is the future. It sets us free. > > > >
Re: [O] trying to write a guidebook for students using org , need help with formating
Thank you all "I think `org-export-preserve-breaks' is the option you want. Try setting it in a single buffer with #+OPTIONS:\n:nil and see what happens..." that sounds interesting, but i couldn't understand how to use it (again im still an org novice:) ) do i stick this line at the start: #+OPTIONS:\n:nil is that ^^ syntax correct? best Z On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali wrote: > On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: > > > > I'm trying to write a simple guidebook for my students in a GIS course. > > Everything works great apart for the life of me i cant get the hang of > > formatting and specifically how to insert (automatically?) line breaks so > > that its discrete lines and not a paragraph. i think one can use '\\' to > > indicate a line break but since its a guidebook "form" there are almost > no > > paragraphs and most line are 1 liners, so it seems to me crazy to go over > > hundred lines of text and attach a \\ at the end. What am i missing here? > > > > i hope i made sense :) any help or documentation links would be really > > appreciated! > > > > I'm attaching a short example of my org file, note that where i want > single > > lines i add a empty space between lines but still in the exporter it > > creates a paragraph out of these lines > > > > I think you are better off trying to do this with a specialised LaTeX > class. A quick search led me to this TeX.SX question: > <http://tex.stackexchange.com/q/3852>. You could also try using lists, > just disable the bullets with an option in an #+attr_latex line. > > > GL, > > -- > Suvayu > > Open source is the future. It sets us free. > >
[O] trying to write a guidebook for students using org , need help with formating
Hi all i decided to dive into the deep water and get rid of M$ word once and for all. I'm still an org novice but since i love org i choose org for the task. I'm trying to write a simple guidebook for my students in a GIS course. Everything works great apart for the life of me i cant get the hang of formatting and specifically how to insert (automatically?) line breaks so that its discrete lines and not a paragraph. i think one can use '\\' to indicate a line break but since its a guidebook "form" there are almost no paragraphs and most line are 1 liners, so it seems to me crazy to go over hundred lines of text and attach a \\ at the end. What am i missing here? i hope i made sense :) any help or documentation links would be really appreciated! I'm attaching a short example of my org file, note that where i want single lines i add a empty space between lines but still in the exporter it creates a paragraph out of these lines thx alot Z. ex_l1.1.org Description: Binary data
Re: [O] make doc fails at PDF: "pdftex exited with bad status"
Hi Alan i had exactly the same issue that drove me mad this solved this for me: https://bbs.archlinux.org/viewtopic.php?id=166163 let me know if you need any help! best Z. On Thu, Oct 17, 2013 at 7:17 PM, Alan E. Davis wrote: > On my Archlinux box with up to date texlive, and a newly cloned org-mode > installation, "make doc" fails with the following messages: > > Output written on org.pdf (257 pages, 974386 bytes). > Transcript written on org.log. > /usr/bin/texi2dvi: pdftex exited with bad status, quitting. > make[1]: *** [org.pdf] Error 1 > make[1]: Leaving directory `/home/doc/WB/Elisp/org-mode.git/doc' > make: *** [pdf] Error 2 > > This is a recent happening, within approxiately 2 to 3 weeks. I > downgraded emacs (also relevant to another recent problem), and re-cloned > the git repo. > > Should I run text2pdf on org.texi, in the doc/ directory, the pdf file is > generated cleanly. I assume there is an issue in doc/Makefile. > > One suspects this issue may involve a recent update of the texlive > packages on this system. In doc/Makefile, is a workaround due to a bug in > texi2dvi. When I deleted the two lines from doc/Makefile, the same issue > seems to exist, but making of org.pdf is skipped, since it already exists: > the failure is for orgguide.pdf, in this case. > > I do not understand makefiles well enough to go any further with this. > > Alan Davis >
Re: [O] Drag images from Firefox to org-mode
Thx Oleh ,This is really amazing! Ive been waiting for ages for something like this. a few questions (well ok"requests" :)..) if you dont mind. please bare in mind i have zero coding skills (or understanding so my questions may be stupid :)) 1.i use alot of images and :in alot of headings and sub headings and the current method creates tens of folders. can you make an option to store all images in a central location, IE ~/org/images? also Torstens suggestion of adding a date to the file name makes alot of sense :) 2.can you add an option to add a local file (IE drag a jpg/png from a folder) or even better yet build into the script a screenshot ability function (using scrot etc) like in the following script: http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg00873.html 3.maybe perhaps a text scraper that would do the same for formatted text, so one would mark a section in the browser, and drag it into org (and the script would automagicly would get rid of the html yuckyness << notice my highly technical coding terms and knowledge) best and thanks alot! Z On Wed, Oct 16, 2013 at 4:48 PM, Torsten Wagner wrote: > This looks like a nice feature! > Maybe you could add to save the address and date the picture was taken, > thus, one could easily refer to the image origin. That is sometimes of > importance. > > Thanks for sharing > > Torsten > > > > On 16 October 2013 12:04, Oleh wrote: > >> Hi all, >> >> Here's a little hack that I use to make my life easier: >> >> (require 'async) >> (eval-when-compile >> (require 'cl)) >> (defun org-store-image (link basedir) >> (async-start >>`(lambda() (shell-command >> ,(format "wget \"%s\" -P \"%s\"" >>link >>(expand-file-name basedir >>(lexical-let ((cur-buf (current-buffer))) >> (lambda(x) >>(with-current-buffer cur-buf >> (org-display-inline-images)) >> >> (defun org-store-image-clipboard (link) >> "Save image at address LINK to current directory's subdirectory DIR. >> DIR is the name of the current level 0 heading." >> (interactive (list (current-kill 0))) >> (let ((filename (car (last (split-string link "/" >> (dir (save-excursion >>(org-up-heading-all (1- (org-current-level))) >>(substring-no-properties >> (org-get-heading) >> (if (null (image-type-from-file-name filename)) >> (message "not an image URL") >> (unless (file-exists-p (expand-file-name filename dir)) >> (org-store-image link dir)) >> (insert (format "[[./%s/%s]]" dir filename)) >> (org-display-inline-images >> >> (setcdr (assoc "^\\(https?\\|ftp\\|file\\|nfs\\)://" dnd-protocol-alist) >> 'dnd-org-insert) >> >> (defun dnd-org-insert (uri action) >> (org-store-image-clipboard uri)) >> >> When it's a plain image, I can just drag it from the browser to org-mode. >> It will be downloaded in async to a subdirectory of the current directory >> and the link will be inserted >> at point. >> For stubborn images that are links I can right click to copy image >> location and call >> `org-store-image-clipboard' interactively. >> >> I hope it's useful to someone and that I'm not re-implementing standard >> functionality. >> >> regards, >> Oleh >> >> regards, >> Oleh >> > >
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
thx again Eric i still have an issue with this when one of the symbols used to start/end the highlight is used in a sentence, for example using your code: (font-lock-add-keywords 'org-mode '(("-1-\\([^-1-]+\\)-1-" (0 '(:weight ultra-bold :background "#DDFFDD" :foreground "#00") t if i write this: -1- this is a test of 1x1 to show higlight -1- it will kill the highlight, if i use the same text omitting the '1' it works well, anyway around this issue? i thought it would have matcehd -1- but it seems it matches also just 1 by itself best wishes and thx again Z On Sat, Oct 5, 2013 at 7:42 AM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thank you so much Eric > > > > that works well apart from as you said it sometime "spills" over to > > other uneeded lines. any idea of how to limit the number of newlines > > that > > the regexp can match? > > > > really appreciate the help > > The easiest thing would be to add a newline to the list of non-matching > characters, like this: "\\(♩[^♩\n]+♩\\)". That won't match _anything_ > that goes longer than one line, though -- is that what you want? I'm > actually not sure how to make the regexp match a specific number of > newlines without things getting much more complicated... > > > On Fri, Oct 4, 2013 at 12:15 PM, Eric Abrahamsen < > > e...@ericabrahamsen.net> wrote: > > > > Xebar Saram writes: > > > > > Thank you again > > > > > > that works well but i think it dosent cover what i had in org. > > in org > > > i use the ♩ symbol to highlight all the text between the 2 ♩, > > IE > > > > > > ♩ALL THIS TEXT IS HIGHLIGHTED♩, currently with the above code > > the ♩ > > > is highlighted but not the text between, is it possible to do > > achive > > > that with font-lock? > > > > > > i really appreciate your help! > > > > > > z > > > > Yup, it's pretty much the exact same thing, just with a different > > regexp. > > > > (font-lock-add-keywords > > 'org-mode > > '(("\\(♩[^♩]+♩\\)" (0 '(:weight ultra-bold :background "# > > FFBF1E") t > > > > You can use "♩\\([^♩]+\\)♩" instead, if you only want the text > > between > > the symbols to be highlighted. > > > > It might be a good idea to somehow limit the number of newlines > > that > > the regexp can match, I'm not sure. > > > > Yours, > > Eric > > > > > > >
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Thank you so much Eric that works well apart from as you said it sometime "spills" over to other uneeded lines. any idea of how to limit the number of newlines that the regexp can match? really appreciate the help z. On Fri, Oct 4, 2013 at 12:15 PM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thank you again > > > > that works well but i think it dosent cover what i had in org. in org > > i use the ♩ symbol to highlight all the text between the 2 ♩, IE > > > > ♩ALL THIS TEXT IS HIGHLIGHTED♩, currently with the above code the ♩ > > is highlighted but not the text between, is it possible to do achive > > that with font-lock? > > > > i really appreciate your help! > > > > z > > Yup, it's pretty much the exact same thing, just with a different > regexp. > > (font-lock-add-keywords > 'org-mode > '(("\\(♩[^♩]+♩\\)" (0 '(:weight ultra-bold :background "#FFBF1E") t > > You can use "♩\\([^♩]+\\)♩" instead, if you only want the text between > the symbols to be highlighted. > > It might be a good idea to somehow limit the number of newlines that > the regexp can match, I'm not sure. > > Yours, > Eric > > >
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Thank you again that works well but i think it dosent cover what i had in org. in org i use the ♩ symbol to highlight all the text between the 2 ♩, IE ♩ALL THIS TEXT IS HIGHLIGHTED♩, currently with the above code the ♩ is highlighted but not the text between, is it possible to do achive that with font-lock? i really appreciate your help! z On Fri, Oct 4, 2013 at 11:02 AM, Bastien wrote: > Xebar Saram writes: > > > as you said i just want to highlight (BG/FG) specific areas/lines. > > any help would be greatly appreciated! > > E.g. you can do this to highlight ♩ with '(:weight > ultra-bold :background "#FFBF1E") : > > (font-lock-add-keywords > 'org-mode > '(("♩" (0 '(:weight ultra-bold :background "#FFBF1E") t > > "♩" is actually a regular expression, so you can use [♩©] to highlight > both ♩ and ©. > > 0 means to highlight the entire matching text. > > HTH, > > -- > Bastien >
Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Thx Bastien! i look at it but it seemed highly complex (im an academic and dont know much (well nothing tbh :) ) about programming. is there a simple way of defining these like the GUI for org-emphasis-alist (i used customize-variables ) as you said i just want to highlight (BG/FG) specific areas/lines. any help would be greatly appreciated! best guys Itai On Fri, Oct 4, 2013 at 10:21 AM, Bastien wrote: > Hi Xebar, > > Xebar Saram writes: > > > so after struggling for weeks to figure out why i always get an error > > when exporting i finally nailed the issue: org-emphasis-alist. i have > > alot of them (see below) and use them in orgmode quite often. is this > > a bug or if you want to use the exporter you should avoid using > > org-emphasis-alist? > > You use org-emphasis-alist to do simple highlighting, right? > > In that case, using you should better use `font-lock-add-keywords'. > > See http://www.emacswiki.org/emacs/AddKeywords for details. > > HTH, > > -- > Bastien >
[O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
hi all so after struggling for weeks to figure out why i always get an error when exporting i finally nailed the issue: org-emphasis-alist. i have alot of them (see below) and use them in orgmode quite often. is this a bug or if you want to use the exporter you should avoid using org-emphasis-alist? thx alot Z (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(ac-dictionary-directories (quote ("/home/zeltak/.emacs.d/elpa/auto-complete-20130330.1836/dict" "/home/zeltak/.emacs.d/dictionary"))) '(bmkp-last-as-first-bookmark-file "/home/zeltak/.emacs.d/bookmarks") '(company-backends (quote (company-elisp company-nxml company-css company-semantic company-clang company-eclim company-xcode company-ropemacs (company-gtags company-etags company-dabbrev-code company-keywords company-ispell) company-oddmuse company-files company-dabbrev))) '(custom-safe-themes (quote ("f57ee03c7fd6fb499bab560e376f824ee2193bf96af6ae67b3019e44ab6a72bd" "2a7d75398789781fe7ae983110c1147bde702020f7bea8b25d9cf243d4fc5007" "52079e380fbb333931e07e1ca7946c5eea7b737dd2c33dbfba7818ea70c4540e" "9abb5a74b8789de4f8552a620ea65ce739d955715f446468ea04fd4e14d21488" "a3f50a2d553d995b9328fd864c08cc6af60403a8a45abf95b9072f0f9c77898a" "752b605b3db4d76d7d8538bbc6fe8828f6d92a720c0ea334b4e01cea44d4b7a9" "9b6be33571491c7118e129a15cc5a92b28d414a9bb68e7b04c508e6107524ba0" "c9d00d43bd5ad4eb7fa4c0e865b666216dfac4584eede68fbd20d7582013a703" "5ce9c2d2ea2d789a7e8be2a095b8bc7db2e3b985f38c556439c358298827261c" default))) '(org-emphasis-alist (quote (("?" (:weight ultra-bold :background "#FFBF1E")) ("₆" (:foreground "#00" :underline t :background "#FF9AEA" :weight ultra-bold)) ("₅" (:weight ultra-bold :foreground "#1E00DE")) ("`" (:foreground "#00" :weight ultra-bold :background "#FBFF00")) ("₄" (:weight ultra-bold :foreground "#FF9800")) ("♪" (:box t)) ("♩" default) ("«" (:foreground "#393D90")) ("^" (:foreground "#393D90" :weight ultra-bold)) ("¶" (:underline t :height 1.3 :weight ultra-bold)) ("¡" (:foreground "#FFA500" :weight ultra-bold)) ("'" (:background "#35FF00" :weight ultra-bold)) ("-" (:foreground "#ff" :slant italic :height 1.3 :weight ultra-bold :background "#3f8c5c")) ("+" (:background "#59BD7F" :foreground "#ff" :slant italic :height 1.2 :weight bold)) ("!" (:weight ultra-bold :foreground "#B4")) ("%" (:weight ultra-bold :background "#DDFFDD" :foreground "#00")) ("$" (nil nil :background "#FF" :foreground "#00" :weight ultra-bold)) ("₁" (:weight ultra-bold :box t :background "#F6F9FF" :foreground "#00" :height 1.6)) ("₂" (:background "#F6F9FF" :box t :height 1.2 :weight ultra-bold)) ("₃" (:weight ultra-bold :background "#F6F9FF" :height 1.1 :underline t)) ("@" (:foreground "#B4" :background "#FF" :weight bold)) (":" (:weight bold :height\ 2 :Foreground "#FF")) ("*" bold) ("/" italic) ("_" underline) ("=" org-code verbatim) ("~" org-verbatim verbatim) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )
Re: [O] create a sparse tree by TODO and property? possible?
Thank you so much Carsten and Suvayu (and let me take the opportunity to thank you Carsten for orgmode in general which just makes my academic/personal life so much more enjoyable :)) this works like a charm! z. On Wed, Sep 18, 2013 at 7:20 AM, Carsten Dominik wrote: > > On 17.9.2013, at 23:33, Suvayu Ali wrote: > > > On Tue, Sep 17, 2013 at 09:15:14PM +0200, Carsten Dominik wrote: > >> > >> On 17.9.2013, at 13:48, Xebar Saram wrote: > >> > >>> Hi all > >>> > >>> can one create a sparse tree using 2 queries, In particular i want to > create a sparse tree that has all heading marked TODO and that have a > specific property i set IE: > >>> :PROPERTIES: > >>> :food_type: indian > >>> :END: > >>> > >>> so i would like sparse tree for example to show 'indian' property but > also TODO state > >> > >> Yes, this is possible. > >> > >> C-c / m food_type="indian"/TODO RET > >> > >> > >> The match syntax is described here: > >> > >> > http://orgmode.org/manual/Matching-tags-and-properties.html#Matching-tags-and-properties > > > > I didn't know this! Althought now that I think, if the agenda can do > > it, sparse tree should be too :-p. > > Indeed, it is the same internal function that does the matching in both > cases. > > - Carsten > > > > > Thanks :). > > > > -- > > Suvayu > > > > Open source is the future. It sets us free. > > > >
[O] export error "unknown marker at"
Hi all i tried this with various org mode files i have and its always the same. whenever i go to export an org mode file via C-c C-e i get the following error: "unknown marker at X" where X is different from file to file. i go to line X in each file and take a look but nothing seems out of the ordinary. i even delete that file but nothing helps. i habe yet to be able to export orgmode files. Im using latest org from MELPA (0.8.1) and latest emacs. any help/ideas to solve this would be greatly appreciated Z.
[O] create a sparse tree by TODO and property? possible?
Hi all can one create a sparse tree using 2 queries, In particular i want to create a sparse tree that has all heading marked TODO and that have a specific property i set IE: :PROPERTIES: :food_type: indian :END: so i would like sparse tree for example to show 'indian' property but also TODO state thx in advancce! z.
[O] create a quick key/command to directly attach a image file from a specific folder
Hya as title says im looking for a way to bind a hotkey or a command to allow me to directly attach a image file from a specific folder. IE im going to put all my org image files to be viewed inline in my notes in ~/org/images/ and want a key to directly pop up this dir and let me choose from it and put it in my org files best z.
[O] need help with complicated idea>send/export org header+content to email/other (for cooking in kitchen :) )
Hi all and sorry about the complicated topic :) among the many many many things i use org for is to collect cooking recipes :) i have zero coding knowledge and my emacs understanding is limited :) what i basically wanted to ask is if anyone could show me a simple function (at least it seems like it should be simple ;-) to allow me to stand on a org heading (a single recipe) press a hotkey/issue a command and then have that header+content exported to pdf/html and emailed to a specific address so i can view it on my android tablet in kitchen while i cook :) is it to crazy? thx alot in advance z.
[O] orgmode and academic conferences advice needed: how to integrate orgmode to capture ideas/data
Hi all im currently in Basel in a Academic conference and was thinking how one would "absorb" all the torrents of ideas/data/images/conversations quickly into org mode :) does any one have any real life experience with this? do you use mobile-org or that, or another method? i have an andorid phone/tablet and a laptop as well so i was wondering if any one had any ideas? in a perfect world i would use my tablet to capture text etc and phone to capture images/posters/quick ideas and have them all automatically sync to my org mode file but i know that wishful thinking best Itai
[O] Auto insert and change date in header?
Hi list does any one know of a way to auto insert/change the date in each sections header when the section is edited?IE have a date in the header showing last edited date. Is this technically possible? best Z
Re: [O] auto pack empty space between headers?
thx bastian, you suggested this: I sometimes use this crude method: M-< C-M-% ^C-qC-jC-qC-j+ RET C-qC-j RET i cant seem to get it working, i always get a "replace 0 occurrences" message. to be clear i do the following: i press M-< (mark set?) then C-M-% (query reolace) then enter : ^C-qC-jC-qC-j+ (as the what to replace) and press return the replace with i enter: C-qC-j and press return and the message is replace 0 occurrences is that correct? appreciate your help as always On Sun, Jun 30, 2013 at 4:30 PM, Bastien wrote: > Hi Xebar, > > Xebar Saram writes: > > > i was > > wondering if there was any command to auto pack empty space between > > headers? > > I sometimes use this crude method: > > M-< C-M-% ^C-qC-jC-qC-j+ RET C-qC-j RET > > Otherwise you can tweak `org-blank-before-new-entry'. > > HTH, > > -- > Bastien >
Re: [O] style the tags with colors in theme
thx again for the answer but it dosent see to work here: https://paste.xinu.at/KlvP/ this is what i have in my config: (setq org-tag-faces '( ("mru" :inherit org-done :box nil :underline t :height 1.2) ("Fav" :foreground "blue" :box nil :underline t :height 1.2))) i restarted emacs but still see fav as a regular tag with out a foreground of blue etc any ideas what im doing wrong? - The ATTACH tag is automatically added when I attach a file to a headline (see Attachments in the org-mode manual [[info:org#Attachments]]). It's the only tag I like to change appearance and thus I used it as an example. But the same procedure should work with other tags. A very important detail is that you need to restart Emacs. In the documentation of org-tag-faces it says "If you set it with Lisp, a restart of Emacs is required to activate the changes." Therefore, put something like the code below in your initialization file and restart Emacs and it should work --8<---cut here---start->8--- (setq org-tag-faces '( ("SomeTag" :inherit org-done :box nil :underline t :height 1.2) ("SomeOtherTag" :foreground "blue" :box nil :underline t :height 1.2))) --8<---cut here---end--->8--- I think that the tags don't need to be in org-tag-alist for this to work. On Tue, Jul 23, 2013 at 11:19 PM, Darlan Cavalcante Moreira < darc...@gmail.com> wrote: > > The ATTACH tag is automatically added when I attach a file to a headline > (see Attachments in the org-mode manual [[info:org#Attachments]]). It's > the only tag I like to change appearance and thus I used it as an > example. But the same procedure should work with other tags. > > A very important detail is that you need to restart Emacs. In the > documentation of org-tag-faces it says "If you set it with Lisp, a > restart of Emacs is required to activate the changes." > > Therefore, put something like the code below in your initialization file > and restart Emacs and it should work > > --8<---cut here---start->8--- > (setq org-tag-faces '( > ("SomeTag" :inherit org-done :box nil :underline t > :height 1.2) > ("SomeOtherTag" :foreground "blue" :box nil :underline t > :height 1.2))) > --8<---cut here---end--->8--- > > I think that the tags don't need to be in org-tag-alist for this to > work. > > -- > Darlan Cavalcante Moreira > darc...@gmail.com > > > zelt...@gmail.com writes: > > > Thx Darlan but i cant seem to get it to work. > > i have tried both adding ATTACH in the top of my org file: > > > > #+TAGS: Fav(f) todo(t) mru(m) bind(b) ATTACH(a) > > > > and also in my org config: > > > > (setq org-tag-alist '(("@work" . ?w) ("@ATTACH" . ?a) ("@dl" . ?d) > ("@preR" > > . ?p) ("@fav" . ?f)("@linux" . ?l))) > > > > and added your line to my config yet nothing happned when i add the > ATTACH > > tag, what am i missing here? > > > > best > > > > z > > > > > > > > > > On Tue, Jul 23, 2013 at 2:45 PM, Darlan Cavalcante Moreira < > > darc...@gmail.com> wrote: > > > >> I use the code below for the ATTACH tag > >> > >> --8<---cut here---start->8--- > >> (setq org-tag-faces '(("ATTACH" :inherit org-done :box nil :underline t > >> :height 1.2))) > >> --8<---cut here---end--->8--- > >> > >> -- > >> Darlan Cavalcante Moreira > >> darc...@gmail.com > >> > >> > >> b...@gnu.org writes: > >> > >> > Hi Xebar, > >> > > >> > Xebar Saram writes: > >> > > >> >> does anyone know how (if there is a way) to style the tags with > >> >> colors in a theme? IE to have tags with a different fg/bg from > >> >> default and even better yet to define a different color for each > >> >> tag? > >> > > >> > See this: > >> > > >> > C-h v org-tag-faces RET > >> > > >> > HTH, > >> >
[O] style the tags with colors in theme
Hi all does anyone know how (if there is a way) to style the tags with colors in a theme? IE to have tags with a different fg/bg from default and even better yet to define a different color for each tag? best Itai
[O] shortcut to create a heading already with todo included
Hya guys i know this is probably a silly question but does anyone know how to make a shortcut that inserts a heading which already includes a TODO state? i have a main file named todo.org in which all heading are todos. each time i need to do a 2 step process: add heading and then add a todo state, so im looking for a quicker way to add a todo item (IE a keybind to add a already todo header). another better solution if possible would be maybe reassign the C-Enter keybind to create a todo header only in a specific file (todo.org) if thatspossible? thx alot in advance Z
Re: [O] advice needed: how do you guys sync org files between devices?
Thx Chris its funny you just posted this as of all the excellent responses in this thread i was looking into git-annex as a solution. The issue is that im not very technical (im an academic not a programmer) and its seems mighty complicated. Also in addition git-assistant is currently isnt available for windows (which im forced to use at work unfortunately..) do you know of a good (simple) guide for git-annex? would you mind to elaborate more on your complete setup? also do you use it to sync with android? thx alot and thank you all who sent responses, its greatly appreciated ! best -itai On Mon, Jul 8, 2013 at 11:53 AM, Christopher Allan Webber < cweb...@dustycloud.org> wrote: > Ian Barton writes: > > > On 01/07/13 13:06, Xebar Saram wrote: > >> Hi all > >> > >> I have been using dropbox since i started using orgmode a few weeks ago > >> (yeah im a neewb :)), which kinda works but i find it very annoying as > >> it keeps creating conflicted copies, isnt reliable on my Linux main > >> machine etc etc.. > >> > >> I was wondering what you guys do for syncing org files between PC's, > >> Os's, devices (android etc).. > >> > > > > I used to use Dropbox and git. However, as you have found I often got > > "Conflicted Files". This is a particular problem if it happens in your > > .git folder, because it can lead to a corrupt git repo. Even though I > > have a remote git repo, this still lead to lots of wasted time trying to > > sort out the mess. > > > > Recently I have been using BitTorrent Sync from > > http://labs.bittorrent.com/experiments/sync.html So far this works > > really well. If you are using Linux you need to do a bit of fiddling to > > get it to run as your local user, as it doesn't preserve file > > permissions. So if you are running it as a daemon files at the remote > > end all get up being owned by root. > > > > The default is for two way synchronization. However, it's easy to set up > > one way sync. This is useful for backups. If you accidentally made a > > change in your backup, you wouldn't want it pushed back to your aster > > version. > > > > I also run a cron job on my laptop, which is my main work machine. Every > > hour this commits my org files to my git repo and pushes the changes to > > my remote on a different computer. > > > > Ian. > > Have you considered using git-annex with git-annex assistant? I'm doing > this now... it automatically syncs on each file save. I also have it > set up so that orgmode files get checked in as if regular git files > rather than moved to the annex like: > > [annex] > # uuid and "version" keys up here > largefiles = largerthan=100kb and not (include=*.org or > include=*.org_archive or include=*.txt or include=*.tex) > > This will thus commit any files < 100kb and orgmode / latex files as > just plain git files instead of moving them to the annex. > > I highly, highly recommend this setup. > - Chris > >
Re: [O] advice needed: how do you guys sync org files between devices?
Wow thx guys, so many great tips ill slowly start looking into them. as i said i am a neewb (and not to technical :)). Alan, a unison guide focused on org would be great as some of the guys mentioned. best to all and thx alot for the info its truly helpful take care -Itai On Tue, Jul 2, 2013 at 6:17 AM, Suvayu Ali wrote: > Hello, > > On Mon, Jul 01, 2013 at 01:25:26PM -0300, Tomas Grigera wrote: > > On Mon, Jul 1, 2013 at 1:10 PM, Brian van den Broek < > > brian.van.den.br...@gmail.com> wrote: > > > > > > bzr and hg are (superficially?) easier and git is pretty dominant. > > [...chomp...chomp...chomp...] > > > But I agree with Brian that in the long run, though harder to learn, git > is > > a charm. > > A comment about using git: > > I have noticed that git *always* conflicts with TODO state changes. It > seems changes to a headline is not easy to resolve. This is where the > Org merge tool would be perfect. There was a GSoC project[1], but I > have not tested the end result. As far as I recall, although > functional, it was not complete. > > Please do not take this as a vote against using git, I use it myself and > I'm a big git enthusiast (as many on the list know by now :-p). > > Cheers, > > > Footnotes: > > [1] < > http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/git-merge-tool/ > > > > -- > Suvayu > > Open source is the future. It sets us free. > >
[O] advice needed: how do you guys sync org files between devices?
Hi all I have been using dropbox since i started using orgmode a few weeks ago (yeah im a neewb :)), which kinda works but i find it very annoying as it keeps creating conflicted copies, isnt reliable on my Linux main machine etc etc.. I was wondering what you guys do for syncing org files between PC's, Os's, devices (android etc).. Best Itai
[O] auto pack empty space between headers?
Hi list does any one know of a way to auto insert and change the date in each sections header when the section is edited?IE have a date in the header showing last edited date. is this technically possible? best Z
[O] auto pack empty space between headers?
Hi list i seem to get alot of times empty spaces between some org sections (between headers and sub-headers). I can manually to each sub heading and manually delete all empty lines at the end of the section. i was wondering if there was any command to auto pack empty space between headers? best Z
[O] org-emphasis-alist not saved/loaded
Hi all I am having issues all of a sudden with org-emphasis-alist. it used to work perfectly until a few days ago. now it wont load the prev org-emphasis-alistdefinitions and wont save new ones. i use an org file as my . emacs with a simple init. here are the init and .emacs org file: https://paste.xinu.at/VXu/ https://paste.xinu.at/ZLwkX/ would appreciate any help to try to figure what went wrong thx alot in advance guys! itai
Re: [O] A simple way to search only headlines
Hi Richard Fantastic, thx alot for the code snippet and detailed explanation, it really helps to understand what goes on. unfortunately i get an error: Wrong type argument: commandp, (lambda nil (org-agenda nil "s" "<")) any clue? best Z. On Fri, Jun 7, 2013 at 5:50 PM, Richard Lawrence < richard.lawre...@berkeley.edu> wrote: > Xebar Saram writes: > > > Thank you both Thorsten and Seb, i really appreciate the help! > > > > Seb, you wrote: The programming equivalent to C-c a s is: > > > > (org-agenda nil "s") > > > > That's what you'd have to bind to a key (using a "lambda" function). > > > > im a complete neewb and dont really have any idea on how to do the above, > > can you show me an example? > > I think you're looking for something like: > > (define-key org-mode-map (kbd "C-M-h") (lambda () (org-agenda nil "s" > "<"))) > > You could put a line like that in your .emacs. Here's what it does: > #+BEGIN_SRC emacs-lisp > (define-key;; insert a new keybinding > org-mode-map ;; into the Org mode map (so this won't affect bindings in > non-Org buffers) > > ;; This is the key we're binding: C-M-h, for "headline" search > ;; You can use whatever key you like, but you might want to check first > that it isn't > ;; already bound to something else (e.g., via C-h k from an Org buffer). > ;; The kbd macro converts a string representation to the appropriate key > code. > (kbd "C-M-h") > > ;; This is the function to run when the key is pressed. The lambda > ;; form creates an anonymous function which calls org-agenda with > ;; the "s" argument and a restriction to current buffer. > (lambda () (org-agenda nil "s" "<"))) > #+END_SRC > > Best, > Richard > > >
Re: [O] Differnet bg/fg by code block type
Hi again i understood from Fabrice (the dev of the excellent excellent leuven-theme) that currently Org mode only uses one background face for all the code blocks. Is that something one can request for (different color background face for different code blocks (IE, Bash,Lisp,R)? if so where should one file that request? (mailing list, bug tracker etc?) best wishes all and have a great weekend! Z On Sat, Jun 1, 2013 at 2:09 PM, Xebar Saram wrote: > > Hi all > > i am using a theme that allows to customize the org-mode bg/fg colors for various aspects of the code block IE > > `(org-block-background ((,class (:background "#E0" >`(org-block-begin-line ((,class (:underline "#A7A6AA" :foreground "#55" :background "#E2E1D5" >`(org-block-end-line ((,class (:overline "#A7A6AA" :foreground "#55" :background "#E2E1D5" > > > I was wondering if this could be extended in anyway to have a few different code block colors so that IE a sh block would have a different bgthen a elisp code block? > > best > > z
Re: [O] A simple way to search only headlines
Thank you both Thorsten and Seb, i really appreciate the help! Seb, you wrote: The programming equivalent to C-c a s is: (org-agenda nil "s") That's what you'd have to bind to a key (using a "lambda" function). im a complete neewb and dont really have any idea on how to do the above, can you show me an example? Best Z On Tue, Jun 4, 2013 at 3:50 AM, Sebastien Vauban wrote: > Hello Xebar, > > >> Or, for a "pure" Org solution: > >> > >> C-c a < s *salsa dance > >> > >> searches for terms appearing only *in the headline* (including tags). > > > > That's great ,i appreciate it! > > > > Seb, is there a way to quick bind a key to the above series of commands? > > The programming equivalent to C-c a s is: > > (org-agenda nil "s") > > That's what you'd have to bind to a key (using a "lambda" function). > > What you want is the restriction to the current buffer as well. You should > update the above, looking at the doc of `org-agenda' (sorry, no time now > to do > it). > > BTW, how to find that you have to bind `org-agenda'? Simply `C-h k', > followed > by the key binding for which you want to know more (here, `C-c a'), such > as: > which function does it call? > > Best regards, > Seb > > -- > Sebastien Vauban > > >
Re: [O] BUG (?): org capture insist *.org file changed in disk, wipes file each time
Hi again all So after further long investigation it seems to me that the issues is caused from the capture template of all things. if i switch back to a basic capture template like this: (setq org-capture-templates '(("t" "Todo" entry (file+headline "~/Dropbox/Org/agenda/TODO.org" "Tasks") "* TODO %?\n %i\n %a") ("j" "Journal" entry (file+datetree "~/org/journal.org") "* %?\nEntered on %U\n %i\n %a"))) i dont seem to get the changed on disk error again. i have tried isolating the exact cause with no success. my config looks like this: (setq org-capture-templates (quote ( ("x" "todo_nix" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Linux") "* TODO %^{Description} %^g Added: %U" ) ("o" "dl_movie" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Movies") "* TODO %^{Description} %^g\nAdded: %U" ) ("v" "dl_TV" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "TV") "* TODO %^{Description} %^g\nAdded: %U" ) ("c" "dl_Comics" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Comics") "* TODO %^{Description} %^g\nAdded: %U" ) ("m" "dl_music" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Music") "* TODO %^{Description} %^g\nAdded: %U" ) ("h" "todo_home" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Home") "* TODO %?\n%T" ) ("u" "todo_uni" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Uni") "* TODO %?\n%T" ) ("f" "todo_food" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Food") "* %?\n%T\n%^{rating}p" ) ("w" "org-protocol" entry (file "~/Dropbox/Org/refile/refile.org") "* TODO Review %c\n%U\n" :immediate-finish t) ("a" "Appointment" entry (file+headline "~/Dropbox/Org/refile/TODO.org" "Cal") "* APPT %^{Description} %^g %? Added: %U") ("p" "Phone call" entry (file "~/Dropbox/Org/refile/refile.org") "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t) ("h" "Habit" entry (file "~/Dropbox/Org/refile/refile.org") "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n" i still dont know which one is creating the issues Any help would be massively appreciated as i have been fighting this for over a week with no solution :( best Z On Thu, Jun 6, 2013 at 2:51 PM, Marc Ihm wrote: > Hi Z. > > Sorry, but cannot think of a proper cause of your troubles other than > dropbox. > > I do not use dropbox, but only rsync for synchronisation. I get the same > message that you get now and then, but each time I get it, > it is because I did synchronisation of my org-files from external sources, > while emacs is still open. > > So can only suspect, that your trouble comes from bad interaction with > dropbox. > > But as you said, you have already tried without, so it can only be very > hidden and obscure. > > Does this happen without a network connection ? > > > Best regards, Marc > > > > On 06/05/2013 05:18 PM, Xebar Saram wrote: > >> Hi all >> >> Im having serious issues with org-capture, ive tried everything i can >> think of including advice on #emacs but can find a solution/whats causing >> this. >> >> So the issue is this. i have org mode configured and working well (see >> below config). the thing is that after the 2nd or 3rd capture (to create a >> todo) emacs gives the following error: >> >> TODO.org changed on disk; really edit the buffer? (y, n, r or C-h) y >> File on disk now will become a backup file if you save these changes. >> >> It happens each time i relaunch emacs/org but never on the first time i >> capture (that always works). it always happens from 2/3rd time i try to >> capture. >> I have tired many things with no succes. i have tried it both with org >> 8.03 and other org that comes with default emacs 24 (from the 7.x series) >> with no success. >> i have checked carefully that no other app is accessing that file while >> emacs/org is editing it >> i have moved the todo file and relevant org capture config to other >> folders (non dropbox/git/etc) and still the same issue occurs >> >> another big issue is that sometime when i press Yes to the above error it >> wipes the whole todo file and puts only the latest capture >> >> any help would be greatly appreciated >> >> for reference here is my complete emacs conf file (in org mode format): >> https://paste.xinu.at/p27KN/ >> >> and the relevant capture part: https://paste.xinu.at/Autp/ >> >> Best >> >> Z. >> > >
[O] BUG (?): org capture insist *.org file changed in disk, wipes file each time
Hi all Im having serious issues with org-capture, ive tried everything i can think of including advice on #emacs but can find a solution/whats causing this. So the issue is this. i have org mode configured and working well (see below config). the thing is that after the 2nd or 3rd capture (to create a todo) emacs gives the following error: TODO.org changed on disk; really edit the buffer? (y, n, r or C-h) y File on disk now will become a backup file if you save these changes. It happens each time i relaunch emacs/org but never on the first time i capture (that always works). it always happens from 2/3rd time i try to capture. I have tired many things with no succes. i have tried it both with org 8.03 and other org that comes with default emacs 24 (from the 7.x series) with no success. i have checked carefully that no other app is accessing that file while emacs/org is editing it i have moved the todo file and relevant org capture config to other folders (non dropbox/git/etc) and still the same issue occurs another big issue is that sometime when i press Yes to the above error it wipes the whole todo file and puts only the latest capture any help would be greatly appreciated for reference here is my complete emacs conf file (in org mode format): https://paste.xinu.at/p27KN/ and the relevant capture part: https://paste.xinu.at/Autp/ Best Z.
Re: [O] A simple way to search only headlines
Thx Seb and Tassilo That's great ,i appreciate it! Seb, is there a way to quick bind a key to the above series of commands? best Z On Mon, Jun 3, 2013 at 3:48 AM, Sebastien Vauban wrote: > Tassilo Horn wrote: > > Xebar Saram writes: > > > >> i was wondering if anyone knew of a way to search for text only in > >> headlines and not the whole document? if not is it something one can > >> put a feature request for? > > > > Use regular expression search or isearch. The latter would be: > > > > C-u C-s \*+.* > > Or, for a "pure" Org solution: > > C-c a < s *salsa dance > > searches for terms appearing only *in the headline* (including tags). > > Best regards, > Seb > > -- > Sebastien Vauban > > >
[O] Differnet bg/fg by code block type
Hi all i am using a theme that allows to customize the org-mode bg/fg colors for various aspects of the code block IE `(org-block-background ((,class (:background "#E0" `(org-block-begin-line ((,class (:underline "#A7A6AA" :foreground "#55" :background "#E2E1D5" `(org-block-end-line ((,class (:overline "#A7A6AA" :foreground "#55" :background "#E2E1D5" I was wondering if this could be extended in anyway to have a few different code block colors so that IE a sh block would have a different bg then a elisp code block? best z
[O] Use of a double symbol (IE !!) in for org-emphasis-alist?
Hi all Can one use a double symbol for org-emphasis-alist IE, !! instead of ! to get more color combinations? i cant seem to get this working so im wondering if this is something possible? best z
[O] A simple way to search only headlines
Hi guys i was wondering if anyone knew of a way to search for text only in headlines and not the whole document? if not is it something one can put a feature request for? kind regards z.