Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-05 Thread Jambunathan K
Xebar Saram zelt...@gmail.com writes: 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? IIRC, The patterns are per-file. There are some 6 or so hi-lock faces that you can

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-03 Thread Xebar Saram
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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-03 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-03 Thread Xebar Saram
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 e...@ericabrahamsen.netwrote: Xebar Saram zelt...@gmail.com writes: Thank you Eric and Jambunathan Eric: i tried with the added backslash but that dosent seem to work

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-02 Thread Xebar Saram
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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-02 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-02 Thread Xebar Saram
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,

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-02 Thread Jambunathan K
Working with font-lock keywords is quite messy. The good news is that you don't have to do it. If you want highlighting in the buffer or a file (and but not in the exported buffer), just go with hi-lock-mode. The relevant manual page is at C-h K C-x w b In your Org file do this,

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-02 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-05 Thread Xebar Saram
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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-05 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Bastien
Hi Xebar, Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Xebar Saram
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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Bastien
Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Xebar Saram
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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Bastien
Xebar Saram zelt...@gmail.com writes: ♩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? Not with font-lock-add-keywords, which I think is just for one-liner highlights (as the name

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Xebar Saram
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 e...@ericabrahamsen.netwrote:

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-10-04 Thread Eric Abrahamsen
Xebar Saram zelt...@gmail.com 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