[O] Changing Modes and Headline Closing

2018-03-26 Thread 42 147
Hello,

I'm editing a large document, mostly text, that is intended for a
website -- thus html is interspersed throughout, though not enough to
justify editing the document as a dedicated .html file.

I only use html-mode if I have to edit a list with 6-7 uls / ols nested
in, mainly to keep track of the position of each li. This is fine, but
when I switch back to org-mode everything collapses back to the
top-level headline. My workaround is to kill-buffer and re-open rather
than M-x org-mode out of html-mode.

Is there a way to switch back to org-mode via M-x org-mode while
preserving the state of the open / closed headlines?

Thanks,

John




[O] Running a Babun Shell In Emacs

2017-01-06 Thread 42 147
How does one run a Babun shell in Emacs?



[O] org-meta-return

2016-10-30 Thread 42 147
Hello,

I notice that org-meta-return now inserts a space between the new headline
and the previous headline. This was not the functionality before (not sure
which update changed it).

Either that, or I preferred defective functionality all along.

Any way to restore the old org-meta-return?

Thanks,

John



[O] Formatting in Visual Line Mode

2015-05-30 Thread 42 147
In visual line mode headlines wrap around and remained glossed as
headlines; nevertheless it would be better if they adjusted to the
hierarchy:

/* I weary of scholars neighing against Ahab, who is magnificent in his
   heroism. Would they have him hunt for more blubber? His chase has
Job’s
   Leviathan in view, a quarry representing Yahweh’s sanctified tyranny
of
   nature over man.

Far more readable (and elegant) than:

/* I weary of scholars neighing against Ahab, who is magnificent in his
heroism. Would they have him hunt for more blubber? His chase has Job’s
Leviathan in view, a quarry representing Yahweh’s sanctified tyranny of
nature over man.

I tend to avoid long headlines, but sometimes they are necessary.
Hopefully there is a quick fix already out there.

The ability to fill headlines would also be a solution here.


[O] emptying all headlines

2015-01-01 Thread 42 147
I'm looking for a way to copy only the headlines and sub-headlines, etc., in
org-mode, without any of the text that had been folded into them. Thus:

/* Bach.

[commentary]

/** Well-Tempered Clavier.

[commentary]

/*** Book I.

[commentary]

/ Prelude in C Major.

[commentary]

Would become:

/* Bach.
/** Well-Tempered Clavier.
/*** Book I.
/ Prelude in C Major.

In other words: a way to empty all the headlines in a buffer.


[O] completing-read question

2014-05-27 Thread 42 147
Hey everyone,

My init stabilized about a year ago and therefore I've actually been
spending more time working in org-mode than customizing it!

But that comes at a cost. My Emacs Lisp has become quite rusty. Recently I
started customizing again, and I wanted to use the completing-read function
-- but I am curious what the numbers in these lists are used for.

This is an example I found in one of the tutorials online:

(completing-read
 Complete a foo: 
 '((foobar1 1) (barfoo 2) (foobaz 3) (foobar2 4))
 nil t fo)

This function appears to work fine without the 1, 2, 3, 4.

If this is outside the scope of this particular mailing list, I will gladly
be directed elsewhere.


[O] feature request

2013-06-25 Thread 42 147

Org-mode has proven tremendously useful in writing musical analyses, but
it would also be nice to provide musical examples in plain text.

Is there anything like this available? If not, I may try to do it
myself. I'm finally getting my act together and finishing the Emacs Lisp
Intro; but any help pointing me to the right examples, or the right
conceptual frameworks would be much appreciate.

Here is more or less what I would want:

--
--
--
--
--

Pretend that is the staff. The user places the cursor on the staff, and
therefore enters note entry mode. The note-entry function is passed
three args: one for the note, two for the rhythmic value. So if the user
presses F, F is passed as the first argument; if the user enters
8, 8 is passed as the second argument; if the user enters ., .
is passed as the third argument.

This produces a dotted 8th F note on the staff. The third argument is
optional (since not all rhythmic values are dotted), and its value is
nil by default.

Anyway, that is a draft of what I would want. May already exist with
slightly different functionality.




[O] lazy command request

2013-06-04 Thread 42 147

Sometimes I accidentally hit a key combination on a headline that
produces the following in the minibuffer:

E-mails / 2013 / June / Meshuggah

So I see precisely where my headline is in the hierarchy. What is the
key combination to produce this information? Very useful, because I hide
stars.

42




[O] window splitting and preserving folded states

2013-04-26 Thread 42 147

Critical to what I do is splitting the buffer into two windows: however, very, 
often, I need to fold the headline in one of the windows in order to (more 
efficiently) search for vital information elsewhere in the same buffer. When I 
do this, the headline is folded in both windows. 

How can I fold this headline in one window and keep it open in the other? Is 
that possible?

I am completely inebriated right now, so apologies for incoherence.

42




[O] converting people to Emacs and org-mode

2013-04-09 Thread 42 147

Hello mailing list,

This might be considered off-topic.

The question is the title: have you been able to convert many people to
Emacs / org-mode? Are converts all programmers, or those versed in
programming? -- Or have you converted non-programmers, e.g., anyone who
edits text for a living?

It's impossible for me to have a conversation these days without
referring to org-mode. Since I use it for practically everything,
there's no way to avoid raising the topic. However, I do find it
difficult to convert people. I send them video captures showing off the
features, give real-time demonstrations, etc., and offer to work them
through the installation and lead them up the steep Emacs learning curve
-- but thus far, I've only gotten a couple people to adopt it. And that
after relentless advocacy.

Anyway, apologies if this seems to clutter the already highly active
mailing list. But I do think questions of proselytization (because we
/are/ talking religion here) is important.

42




Re: [O] converting people to Emacs and org-mode

2013-04-09 Thread 42 147
 Not when they're your employees!

 Only half joking,

+1 for the serious half. Totalitarianism is underrated.

 this confirms that different people have wildly different usage patterns

That is absolutely true. I didn't care about org-mode until a friend showed
me his Shakespeare.org file. I pressed tab on Shakespeare and it was like
hearing the Master of Puppets opening riff for the first time.

I've had one successful convert of a total non-programmer. He was studying
German, and I'd watch him in Firefox with ten tabs open trying to translate
a passage of Kritik der Reinen Vernunft. So then I showed him how to split
the screen in Emacs -- German original on top, English on the bottom -- and
how to fetch definitions on the fly from a dictionary server. Got him
hooked in a second.

I agree that working someone through Windows poses unique problems. I had
to debase myself and fire up Windows for the first time in years.

However, on the issue of tutorials, I did save my entire IM logs. It might
be an interesting presentation technique -- to read a real, natural
step-by-step working through of Emacs with someone completely computer
illiterate. It took two hours to get him to map a shortcut to a particular
file and get it to work. And there is so much knowledge and intuition we
take for granted: for example, to a lot of computer illiterate people, a
find-file function is magical. So is a .emacs. He didn't understand why
he could newline arbitrarily before inserting new code, e.g., So wait, why
is this file just empty? How does writing stuff here do anything to Emacs?
It was very interesting psychologically to remind oneself of this state of
mind. To most people a program is a shortcut icon on the desktop, not a
bunch of disparate files that coalesce into something like Emacs.


Re: [O] yanking a headline in folded state

2013-04-02 Thread 42 147
 In my Emacs I have the following.  Would that work?

 C-c C-x C-w runs the command org-cut-special, which is an interactive
 compiled Lisp function in `org.el'.

I incidentally figured out the problem: I had rebound yank to C-., and
did not realize that org-yank was bound to the original yank shortcut
(C-y).

Therefore, I was yanking the org text rather than org-yanking it.
org-cut-special turns out not to be necessary, although I appreciate the
suggestion; and in fiddling around with it, I found the solution to my
problem.

Lesson learned: I should always take a second look at potential org-mode
parallels to the standard Emacs commands. Until now, I had assumed that
yank in org-mode was identical to yank generally.


[O] yanking a headline in folded state

2013-04-01 Thread 42 147

Hello mailing list,

A source of slight irritation is killing a whole headline with C-k
(usually to move it to another buffer), and seeing it unfold every
single sub-headline after I yank it to its new position. This causes
tremendous chaos sometimes, especially if there are a number of nested
sub-headlines, and the killed headline itself needs to be adjusted to a
deeper / shallower level (depending on where I inserted it).

So in fewer words: how do I yank a headline in its folded state?

Much thanks,

42




Re: [O] New logo

2013-04-01 Thread 42 147
 Or maybe the logo should include the subterranean wonders of org the
ostrich
 (orgstrich?) is marveling at?

Completely awesome suggestion. Please integrate.

The logo is indeed hilarious though.


[O] problem opening web links

2013-03-27 Thread 42 147

Mailing list,

I get the following error whenever I call the function org-open-at-point
on a web link while Firefox is already running:

Firefox is already running, but is not responding. To open a new
window, you must first close the existing Firefox process, or restart
your system.

These links apparently require their own instance of Firefox. If I open
Firefox with one of the links, then the others will open in that
instance. But if I open Firefox for some other business first, I receive
the above error message.

Any help is appreciated,

42






Re: [O] saving state of buffer

2013-03-22 Thread 42 147
Thomas,

Could you provide a recipe? As a test, I ran Emacs with just the following
code in my .emacs:

(require 'saveplace)
(setq-default save-place t)

(setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))

Emacs ran without any errors, and I made a test.org file, created multiple
headlines, and left point in the middle of a paragraph. Everything restored
fine after closing and revisiting the file.

I was hoping someone else would jump in and interpret those debugging
messages, because I'm not proficient enough in Emacs Lisp yet, nor familiar
enough with the org-mode code base. All I can do is try and reproduce your
error. The code seems to be robust, though.

Tried my best with what I have,

42

2013/3/21 Thomas S. Dye t...@tsdye.com

 42 147 aeus...@gmail.com writes:

  Good - May I suggest, that you write a step - by step howto and mail
  it here or even add it to
  worg? This would be a useful addition.
 
  I adapted this thread the best I could. Feel free to do with it what you
  wish.
 
  QUESTION
 
  How do I restore the state of my buffer where I left it?
 
  ANSWER
 
  When Emacs first visits an Org file, the global state is set to
  OVERVIEW, i.e., only the top level headlines are visible.
 
  If you wish Emacs to restore the position of point where you left it in
  your previous session, add the following code to your .emacs:
 
  (require 'saveplace)
  (setq-default save-place t)
 
  If you wish Org-mode to restore the folded state of the buffer (not just
  the position of point), you can either use customize, or add the
 following
  to .emacs:
 
  (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))

 This doesn't work for me:

 Debugger entered--Lisp error: (wrong-type-argument listp t)
   mapcar(#[(f)  T\306\n!\204 \n:\203 \307\n \\202
 \n*\211\203`\310\f
 \\203` \311\312
 \\311\313
 \D \306\n!\203B\314\n \\202\\\n\203O\314\315\n #\202\\ \203Z @\202\\
 *\202a
\306\n!\204y\n:\203y\307\n \\202z\n*\206\200
 C \306\n!\203\223\314\n \\202\255\n\203\240\314\315\n #\202\255 \203\253
 @\202\255 ,\207 [i *orgtbl-efmt* fmt efmt orgtbl-exp-regexp f functionp
 plist-get string-match match-string 1 2 apply format args *orgtbl-fmt*
 *orgtbl-default-fmt*] 6] (bookmark-jump . t))
   orgtbl-format-line((bookmark-jump . t))
   orgtbl-format-section(nil)
   orgtbl-to-generic(((default) (isearch t) (bookmark-jump . t))
 (:remove-newlines t :tstart nil :tend nil :hline |--- :sep  |  :lstart
 |  :lend  | :fmt (lambda (cell) (format %s cell
   orgtbl-to-orgtbl(((default) (isearch t) (bookmark-jump . t)) (:fmt
 (lambda (cell) (format %s cell
   org-babel-insert-result(((default) (isearch t) (bookmark-jump . t))
 (replace) (emacs-lisp (require 'saveplace)\n(setq-default save-place
 t)\n(setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
 ((:comments . ) (:shebang . ) (:cache . no) (:padline . ) (:noweb .
 yes) (:tangle . yes) (:exports . code) (:results . replace)
 (:session . none) (:padnewline . yes) (:hlines . yes) (:colnames .
 no) (:result-type . value) (:result-params replace) (:rowname-names)
 (:colname-names))  nil 0) nil 0 emacs-lisp)
   org-babel-execute-src-block(nil (emacs-lisp (require
 'saveplace)\n(setq-default save-place t)\n(setq org-show-siblings
 '((default) (isearch t) (bookmark-jump . t))) ((:comments . ) (:shebang
 . ) (:cache . no) (:padline . ) (:noweb . yes) (:tangle . yes)
 (:exports . code) (:results . replace) (:session . none) (:padnewline
 . yes) (:hlines . yes) (:colnames . no) (:result-type . value)
 (:result-params replace) (:rowname-names) (:colname-names))  nil 0))
   org-babel-execute-src-block-maybe()
   org-babel-execute-maybe()
   org-babel-execute-safely-maybe()
   run-hook-with-args-until-success(org-babel-execute-safely-maybe)
   org-ctrl-c-ctrl-c(nil)
   call-interactively(org-ctrl-c-ctrl-c nil nil)

 All the best,
 Tom


 --
 Thomas S. Dye
 http://www.tsdye.com



Re: [O] saving state of buffer

2013-03-22 Thread 42 147
Thomas,

Glad to hear. I'm quite pleased with this functionality: given that I am
always in the midst of some writing / analysis project, it has been a major
improvement. Already got one of my friends to instantly adopt it.

My only complaint is that I cannot momentarily enslave all my friends and
relatives and ram Emacs down their throats. I wish I could be a
totalitarian for just one day.

Living the high life in org-mode,

42

2013/3/22 Thomas S. Dye t...@tsdye.com

 Aloha 42,

 42 147 aeus...@gmail.com writes:

  Thomas,
 
  Could you provide a recipe? As a test, I ran Emacs with just the
 following
  code in my .emacs:
 
  (require 'saveplace)
  (setq-default save-place t)
 
  (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
 
  Emacs ran without any errors, and I made a test.org file, created
 multiple
  headlines, and left point in the middle of a paragraph. Everything
 restored
  fine after closing and revisiting the file.
 
  I was hoping someone else would jump in and interpret those debugging
  messages, because I'm not proficient enough in Emacs Lisp yet, nor
 familiar
  enough with the org-mode code base. All I can do is try and reproduce
 your
  error. The code seems to be robust, though.
 
  Tried my best with what I have,
 
  42
 


 Thanks for looking into this.  I found some time to investigate and
 haven't been able to reproduce the problem.  It all seems to work as
 advertised (and I like it).

 Sorry for the noise.

 Tom


 --
 Thomas S. Dye
 http://www.tsdye.com



Re: [O] saving state of buffer

2013-03-21 Thread 42 147
Thanks David, but what Carsten suggested completely resolved my problem (it
applies not just to bookmarks; it fully preserves my buffer's folded state
after adding Christoph's code to my .emacs). But I should also thank you
for finding the words I struggled to find (folded state).

I feel honored that royalty stepped into the discussion.

Herzlichen Dank,

42


2013/3/21 Carsten Dominik carsten.domi...@gmail.com


 On 20.3.2013, at 19:28, 42 147 aeus...@gmail.com wrote:

  (require 'saveplace)
  (setq-default save-place t)

  works for me. It just opens the place where I had the point, nothing
  more, but that's what I need most.

 This is more convenient than Emacs bookmarks, but still breaks org-mode to
 a certain extent: all non top-level headlines below point are hidden. At
 least for me.


 Org-mode has very precise control for situations when a jump into
 invisible text happens, for example by isearch or by bookmark-jump or
 saveplace.  Take a look at the variable org-show-siblings and set a special
 context for bookmark-jump, that should do it.  This will work for both
 saveplace and bookmarks.

 You can do this with customize, or just like this:

 (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))

 There are companion variables, they are all in the customization group
 org-reveal-context.

 - Carsten



Re: [O] saving state of buffer

2013-03-21 Thread 42 147
 Good - May I suggest, that you write a step - by step howto and mail it here 
 or even add it to
 worg? This would be a useful addition.

I adapted this thread the best I could. Feel free to do with it what you
wish.

QUESTION

How do I restore the state of my buffer where I left it?

ANSWER

When Emacs first visits an Org file, the global state is set to
OVERVIEW, i.e., only the top level headlines are visible.

If you wish Emacs to restore the position of point where you left it in
your previous session, add the following code to your .emacs:

(require 'saveplace)
(setq-default save-place t)

If you wish Org-mode to restore the folded state of the buffer (not just
the position of point), you can either use customize, or add the following
to .emacs:

(setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))

If you use customize, take look at the variable org-show-siblings and set a
special context for bookmark-jump. This will work for both saveplace and
bookmarks.

Org-mode has very precise control for situations when a jump into invisible
text happens, for example by isearch or by bookmark-jump or saveplace.
There are companion variables, and they are all in the customization group
org-reveal-context.

2013/3/21 Rainer M Krug r.m.k...@gmail.com

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 21/03/13 10:28, Carsten Dominik wrote:
 
  On 21 mrt. 2013, at 10:23, Rainer M Krug r.m.k...@gmail.com wrote:
 
  On 21/03/13 10:05, 42 147 wrote:
  Thanks David, but what Carsten suggested completely resolved my
 problem (it applies not
  just to bookmarks; it fully preserves my buffer's folded state after
 adding Christoph's
  code to my .emacs).
 
  Good - May I suggest, that you write a step - by step howto and mail it
 here or even add it to
  worg? This would be a useful addition.
 
  I guess it would make a good FAQ entry.

 Haven't thought about these - they would even be better then worg.

 
  I also think that maybe the current default is not good, show-siblings
 should probably
  default to t for bookmark jump.

 Would make much sense - I assume that would then open the location when
 doing a search - replace.

 Cheers,

 Rainer

 
  - Carsten
 
 
  But I should also thank you for finding the words I struggled to find
 (folded state).
 
  And we have to thank you for this useful question!
 
  Cheers,
 
  Rainer
 
 
  I feel honored that royalty stepped into the discussion.
 
  Herzlichen Dank,
 
  42
 
 
  2013/3/21 Carsten Dominik carsten.domi...@gmail.com mailto:
 carsten.domi...@gmail.com
 
 
  On 20.3.2013, at 19:28, 42 147 aeus...@gmail.com mailto:
 aeus...@gmail.com wrote:
 
  (require 'saveplace) (setq-default save-place t)
 
  works for me. It just opens the place where I had the point,
 nothing more, but that's
  what I need most.
 
  This is more convenient than Emacs bookmarks, but still breaks
 org-mode to a certain
  extent: all non top-level headlines below point are hidden. At least
 for me.
 
 
  Org-mode has very precise control for situations when a jump into
 invisible text happens,
  for example by isearch or by bookmark-jump or saveplace.  Take a look
 at the variable
  org-show-siblings and set a special context for bookmark-jump, that
 should do it.  This
  will work for both saveplace and bookmarks.
 
  You can do this with customize, or just like this:
 
  (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
 
  There are companion variables, they are all in the customization group
  org-reveal-context.
 
  - Carsten
 
 
 
 
 

 - --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
 Biology, UCT), Dipl. Phys.
 (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

 Fax (D):+49 - (0)3 21 21 25 22 44

 email:  rai...@krugs.de

 Skype:  RMkrug
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJRStYGAAoJENvXNx4PUvmCOYQH/iun7nUB4Wr4KJXwGuCJizgW
 7h7565oAlV0ka6JONGG03xnxh0PvZCrj3Ns7xE6kitLeVZ0oIEa8Wp1I4eMGX1PI
 qXGnTuJ/nwVtpdn9geswCM11Rfz3KdlBWUz6zYFUXrD1GVaEyXBJPj2j0H1N27RD
 6pK0IS3T7pnuycIpmqzEU5aWAkgK01sB3mIs5JYvnMGfoV0ZXLGcVplqXO0Hc3XR
 P1Ea/uzzWSSKgJWGSlB9ELVC1sZg8xPqjM/vWPG2U+/fp3VfJ2aeJJc9v87mq3li
 YI8Z4fYKO00oKv+quEOGWyDr0bO3w9PjJGAWmlw0cFu9UzxU4pRAmHR+XyTTCOc=
 =y9LZ
 -END PGP SIGNATURE-



[O] saving state of buffer

2013-03-20 Thread 42 147

How would I save the state of the headlines? e.g.,:

* Books
* Movies
* Music
** Analysis
*** Classical
 Composers
* Beethoven
** Eroica
*** II. Marcia funebre: Adagio assai 
 General Comments
* Climax of the Movement

The climax of the movement for me is the sudden prominence of the French
Horn at measures 136 - 140 (9:21 - 9:36, Bernstein).

. . .

When I return to this buffer, I want all of this to be opened. The
problem with the Emacs bookmarks is that the headlines get completely
garbled.








Re: [O] saving state of buffer

2013-03-20 Thread 42 147
Apologies on behalf of my inferior cognitive faculty, but I do not see a
solution to my problem in those options (perhaps merely a means to it).

Between OVERVIEW, CONTENT, SHOWALL, SHOWEVERYTHING, which == allow me to
save and reopen the buffer in its current configuration.

From what I can gather from limited reading comprehension, these are still
general settings, i.e., ALL headlines will be opened; ALL drawers will be
opened; ALL text will be exposed.

What I want is to just have those things exposed that I exposed in my
particular session.

mit freundlichen Grüßen,

42

2013/3/20 Bastien b...@altern.org

 Hi Fourtytwo,

 42 147 aeus...@gmail.com writes:

  When I return to this buffer, I want all of this to be opened.

 (info (Org)Visibility cycling)

When Emacs first visits an Org file, the global state is set to
 OVERVIEW, i.e., only the top level headlines are visible.  This can be
 configured through the variable 'org-startup-folded', or on a per-file
 basis by adding one of the following lines anywhere in the buffer:

  #+STARTUP: overview
  #+STARTUP: content
  #+STARTUP: showall
  #+STARTUP: showeverything

The startup visibility options are ignored when the file is open for
 the first time during the agenda generation: if you want the agenda to
 honor the startup visibility, set 'org-agenda-inhibit-startup' to nil.

 Furthermore, any entries with a 'VISIBILITY' property (*note Properties and
 Columns::) will get their visibility adapted accordingly.  Allowed values
 for
 this property are 'folded', 'children', 'content', and 'all'.  'C-u C-u
 TAB' ('org-set-startup-visibility')
  Switch back to the startup visibility of the buffer, i.e., whatever is
  requested by startup options and 'VISIBILITY' properties in individual
  entries.

 HTH,

 --
  Bastien



Re: [O] saving state of buffer

2013-03-20 Thread 42 147
 (require 'saveplace)
 (setq-default save-place t)

 works for me. It just opens the place where I had the point, nothing
 more, but that's what I need most.

This is more convenient than Emacs bookmarks, but still breaks org-mode to
a certain extent: all non top-level headlines below point are hidden. At
least for me.

2013/3/20 42 147 aeus...@gmail.com

 Apologies on behalf of my inferior cognitive faculty, but I do not see a
 solution to my problem in those options (perhaps merely a means to it).

 Between OVERVIEW, CONTENT, SHOWALL, SHOWEVERYTHING, which == allow me to
 save and reopen the buffer in its current configuration.

 From what I can gather from limited reading comprehension, these are still
 general settings, i.e., ALL headlines will be opened; ALL drawers will be
 opened; ALL text will be exposed.

 What I want is to just have those things exposed that I exposed in my
 particular session.

 mit freundlichen Grüßen,

 42


 2013/3/20 Bastien b...@altern.org

 Hi Fourtytwo,

 42 147 aeus...@gmail.com writes:

  When I return to this buffer, I want all of this to be opened.

 (info (Org)Visibility cycling)

When Emacs first visits an Org file, the global state is set to
 OVERVIEW, i.e., only the top level headlines are visible.  This can be
 configured through the variable 'org-startup-folded', or on a per-file
 basis by adding one of the following lines anywhere in the buffer:

  #+STARTUP: overview
  #+STARTUP: content
  #+STARTUP: showall
  #+STARTUP: showeverything

The startup visibility options are ignored when the file is open for
 the first time during the agenda generation: if you want the agenda to
 honor the startup visibility, set 'org-agenda-inhibit-startup' to nil.

 Furthermore, any entries with a 'VISIBILITY' property (*note Properties
 and
 Columns::) will get their visibility adapted accordingly.  Allowed values
 for
 this property are 'folded', 'children', 'content', and 'all'.  'C-u C-u
 TAB' ('org-set-startup-visibility')
  Switch back to the startup visibility of the buffer, i.e., whatever
 is
  requested by startup options and 'VISIBILITY' properties in
 individual
  entries.

 HTH,

 --
  Bastien





Re: [O] org-meta-return

2013-03-02 Thread 42 147
Michael,

Did a little research on Colemak: appears to be (1) as or even slightly
more ergonomic than Dvorak, in terms of measurable results; and (2)
designed for QWERTY users.

That said, were you a QWERTY user before you transitioned into Colemak?

. . .

Does anyone here type Russian characters? I've started learning how to type
the alphabet using Cyrillic stickers on my keyboard, and it /seems/ to be
more ergonomically organized -- but perhaps that is just because I'm
systematically learning it, rather than intuitively, and over many years,
as I did with English QWERTY.


2013/3/2 Michael Brand michael.ch.br...@gmail.com

 Hi John

 On Feb 21, 2013 10:16 PM, 42 147 aeus...@gmail.com wrote:
  [continues off-topic]
 
   Have you tried a Dvorak keyboard?
 
  A friend of mine ridicules me for being a QWERTY typist, but I have found
  no empirical evidence that it is actually superior. At best, it has been
  proven, in /some/ studies, to be /slightly/ superior; and from a
  cost-benefit standpoint, /slight/ superiority according to /some/ studies
  (and I should add, only at extreme speeds), is not worth relearning how
 to
  type.

 Colemak is a much better keyboard layout than Dvorak. I have been using
 Colemak for many years now with great pleasure.

 Michael



Re: [O] hiding footnotes

2013-02-26 Thread 42 147
Set it to 20, thanks.

Hopefully I never need to hit the 26 limit.

2012/11/29 Nick Dokos nicholas.do...@hp.com

 42 147 aeus...@gmail.com wrote:

  Very nice.
 
  However, I'd like to write a function that toggles the color value
 (without
  recourse to the customize menu), since it would be useful to highlight
 the
  footnotes from time to time.
 

 Anything that can be done interactively can also be done
 programatically. You know what face you are dealing with, you can get
 its foreground color with face-foreground, and you can set it with
 set-face-attribute. A crude implementation to show the basic outline:

 --8---cut here---start-8---
 (setq org-footnote-fg-color (face-foreground 'org-footnote))

 (setq org-text-fg-color (face-foreground 'default))

 (defun my-toggle-footnote-fg-color ()
   Toggle the org-footnote face foreground color.
   (interactive)
   (let ((fg (face-foreground 'org-footnote)))
 (if (string-equal fg org-footnote-fg-color)
 (set-face-attribute 'org-footnote nil :foreground
 org-text-fg-color)
   (set-face-attribute 'org-footnote nil :foreground
 org-footnote-fg-color
 --8---cut here---end---8---

 The difficulties start (but do not end) with footnotes in all sorts of
 weird places (e.g. headlines) with all sorts of different
 fontifications. You'd want to blend the footnote with its immediate
 surroundings.

 Taking care of such situations (and various others that the above code
 mishandles) is left as an exercise...

 Nick



Re: [O] hiding footnotes

2013-02-26 Thread 42 147
Oops, wrong thread.

2013/2/26 42 147 aeus...@gmail.com

 Set it to 20, thanks.

 Hopefully I never need to hit the 26 limit.


 2012/11/29 Nick Dokos nicholas.do...@hp.com

 42 147 aeus...@gmail.com wrote:

  Very nice.
 
  However, I'd like to write a function that toggles the color value
 (without
  recourse to the customize menu), since it would be useful to highlight
 the
  footnotes from time to time.
 

 Anything that can be done interactively can also be done
 programatically. You know what face you are dealing with, you can get
 its foreground color with face-foreground, and you can set it with
 set-face-attribute. A crude implementation to show the basic outline:

 --8---cut here---start-8---
 (setq org-footnote-fg-color (face-foreground 'org-footnote))

 (setq org-text-fg-color (face-foreground 'default))

 (defun my-toggle-footnote-fg-color ()
   Toggle the org-footnote face foreground color.
   (interactive)
   (let ((fg (face-foreground 'org-footnote)))
 (if (string-equal fg org-footnote-fg-color)
 (set-face-attribute 'org-footnote nil :foreground
 org-text-fg-color)
   (set-face-attribute 'org-footnote nil :foreground
 org-footnote-fg-color
 --8---cut here---end---8---

 The difficulties start (but do not end) with footnotes in all sorts of
 weird places (e.g. headlines) with all sorts of different
 fontifications. You'd want to blend the footnote with its immediate
 surroundings.

 Taking care of such situations (and various others that the above code
 mishandles) is left as an exercise...

 Nick





Re: [O] apparent limit to headline nesting

2013-02-26 Thread 42 147
Set it to 20, thanks.

Hopefully I never need to hit the 26 limit.

2013/2/24 Nick Dokos nicholas.do...@hp.com

 42 147 aeus...@gmail.com wrote:

 
  I'm unable to go past 14 levels in.
 
  ** Headline 14 levels in.
  *** Headline 15 levels in.
 
  I can't fold Headline 15 into Headline 14.
 
 

 You are probably hitting org-inlinetask-min-level (15 by default).

 Nick



[O] apparent limit to headline nesting

2013-02-24 Thread 42 147

I'm unable to go past 14 levels in.

** Headline 14 levels in.
*** Headline 15 levels in.

I can't fold Headline 15 into Headline 14. 




Re: [O] org-meta-return

2013-02-21 Thread 42 147
[continues off-topic]

 Have you tried a Dvorak keyboard?

A friend of mine ridicules me for being a QWERTY typist, but I have found
no empirical evidence that it is actually superior. At best, it has been
proven, in /some/ studies, to be /slightly/ superior; and from a
cost-benefit standpoint, /slight/ superiority according to /some/ studies
(and I should add, only at extreme speeds), is not worth relearning how to
type.

I should add, he, too, changed the default Emacs keybindings to be
positional. But he ended up changing /different/ defaults.

2013/2/20 Nick Dokos nicholas.do...@hp.com

 [Warning: off-topic]

 42 147 aeus...@gmail.com wrote:

  My hands might be smaller than average, or, at least, smaller than yours.
  To reach right I must shift my entire arm to the right and
  downward. To reach RET no such movement is necessary. Maybe a slight
  turn of the wrist to the right.
 

 I doubt my hands are bigger than yours: I have to do exactly what you
 describe (at least on the bigger keyboards). It's just not as big a deal
 for me as it is for you.

   Of course, these things are *highly* personal preferences, and you
 might
   have a lower tolerance for pain than I have, but I have to ask: where
   exactly is your right key relative to RET?
 
  Warning, digression:
 
  I'm ultra cautious about finger / wrist strain. Even if I feel slight
  discomfort from a keybinding, I will change it to be more ergonomic and
  strain-free. Practically every basic Emacs movement command has been
  rebound for optimum comfort as a QWERTY typist.
 
  Many of the default Emacs keybindings are notational, not positional. For
  example, C-p and C-n. I've made them all positional. C-p / C-] are now
  paired together for previous-line / next-line. C-q / C-e for
  beginning-of-line / end-of-line. From a positional standpoint, C-p / C-n
  makes absolutely no sense.
 

 Agreed - they are only mnemonically significant. And I think you are
 right in taking precautions. As I said, I'm a sufficiently bad typist
 so that all these sins have not bitten me (at least not yet - and they
 are rapidly running out of time).

 Have you tried a Dvorak keyboard? My son uses a QWERTY keyboard, mapped
 in software to Dvorak - he learnt to touch type on one by switching
 all the keycaps, although he didn't need the crutch
 after a while, so his second keyboard has all the keycaps in the
 standard places - they just produce different characters than what the
 keycaps say. This had two advantages for him: the Dvorak placement
 which reduces strain (supposedly at least), and the fact that I
 couldn't say to him Move over and let me drive for a while. I tried
 a couple of times and I can still hear his laughter... I suspect
 that unless one is an experienced Dvorak typist, it is a better security
 device than many passwords :-)

 I'm not sure a Dvorak keyboard would help with emacs chords though.
 Another possibility is one of the funky Kinesis keyboards: a colleague
 would wax ecstatic about his, but he was not an emacs user. And they
 are too expensive to buy one just to try it out.

 I'd be interested if somebody has tried either a Dvorak keyboard or
 a Kinesis one with emacs - but this is way off-topic by now, so maybe
 not.

 Nick





[O] org-meta-return

2013-02-20 Thread 42 147

Invaluable command, but often I want to insert a new headline at point
that is one level down; i.e.:

*** topic_1

[COMMAND]

 subtopic

As an expansion to:

*** topic_1

M-RET

*** topic_2




Re: [O] org-meta-return

2013-02-20 Thread 42 147
 M-RET M-right

Appreciate the reply, but that's worse than what I was doing. M-right
is not anywhere close to my high frequency areas of finger activity.
I've changed all such keybindings.

I notice that C-M-RET is undefined. If anyone wants to add the
functionality as described in my original post, and bind it to that key
chord, I would be grateful; in the meantime, I'll create a macro /
interactive defun to do the same.


Re: [O] org-meta-return

2013-02-20 Thread 42 147
 You can also use TAB on an empty headline to cycle through the various
 levels: +1 level, -1 level, -2..n levels (until it reaches the top level
 *), and then back to the level it was created at.

Good to know, but I ended up with a simple defun and org-mode-hook. Will
probably add what you said to my arsenal, however.

My hands might be smaller than average, or, at least, smaller than yours.
To reach right I must shift my entire arm to the right and
downward. To reach RET no such movement is necessary. Maybe a slight
turn of the wrist to the right.

 Of course, these things are *highly* personal preferences, and you might
 have a lower tolerance for pain than I have, but I have to ask: where
 exactly is your right key relative to RET?

Warning, digression:

I'm ultra cautious about finger / wrist strain. Even if I feel slight
discomfort from a keybinding, I will change it to be more ergonomic and
strain-free. Practically every basic Emacs movement command has been
rebound for optimum comfort as a QWERTY typist.

Many of the default Emacs keybindings are notational, not positional. For
example, C-p and C-n. I've made them all positional. C-p / C-] are now
paired together for previous-line / next-line. C-q / C-e for
beginning-of-line / end-of-line. From a positional standpoint, C-p / C-n
makes absolutely no sense.


2013/2/20 Nick Dokos nicholas.do...@hp.com

 42 147 aeus...@gmail.com wrote:

   M-RET M-right
 
  Appreciate the reply, but that's worse than what I was doing. M-right
  is not anywhere close to my high frequency areas of finger activity
  I've changed all such keybindings.
 

 In all three keyboards I use regularly, right is fairly close to RET
 (and to the right Control key): I can reach it fairly easily with my
 right pinky, same as with RET - it does require a bigger stretch for
 the full-size keyboards than it does on the laptop keyboard - although
 I'm a sufficiently bad typist that I often have to resort to looking at
 the keyboard in such situations, in which case I use my right index
 finger (for RET as well as right or other arrow key).

 That's not too bad because it's not as if this is a frequent activity
 for me. Org's standard keymaps also use arrow keys fairly heavily, so
 changing all of them sounds like a lot of work: I've tried swimming
 against such tides before, but invariably I have given up exhausted,
 gone back to the standard keymap and lived a much happier life.

 Of course, these things are *highly* personal preferences, and you might
 have a lower tolerance for pain than I have, but I have to ask: where
 exactly is your right key relative to RET? How far

  I notice that C-M-RET is undefined. If anyone wants to add the
  functionality as described in my original post, and bind it to that key
  chord, I would be grateful; in the meantime, I'll create a macro /
  interactive defun to do the same.
 

 If, despite my warnings, you still want to proceed, you can do something
 like this (lightly tested) - add it to the end of your .emacs:

 --8---cut here---start-8---
 (defun my-org-control-meta-return ()
Assume we are in headline context: open a new headline one level
below the current one.
(interactive)
(org-insert-heading)
(org-metaright))

 (defun my-org-mode-hook ()
(define-key org-mode-map (org-key [(control meta return)])
 'my-org-control-meta-return))

 (add-hook 'org-mode-hook (function my-org-mode-hook))
 --8---cut here---end---8---

 Although I use some org facilities above (org-key in particular), this
 is a general process which you might want to add to your arsenal of
 emacs techniques:

 o Define a hook (a function of no arguments) and add it to the mode's
   hook. When the mode is loaded, it runs its mode hook as the last thing
   it does.

 o The hook (re)defines a key in some keymap (org-mode-map above),
   binding a function of your choosing to the key. It can of course do
   other things as well (or in place of redefining keys).

 o Finally, write the function that's to be bound to the key. This is
   absolutely at your discretion: make it do whatever you want it to do
   when you press that key.

 Note however that org-meta-return checks the context that it is called
 from and does the Right Thing (tm). my-org-control-meta-return just
 assumes it's at a headline context and proceeds blindly, e.g. if you do
 C-M-RET in a table, you'll probably mess up the table.  Making it
 bullet-proof is left as an exercise for the interested reader.

 Read more about hooks at

  (info (emacs) Hooks)

 Nick



[O] killing all contents of a headline

2013-02-19 Thread 42 147

Title is self-explanatory. Is there a command that lets me place the
cursor on a headline and delete its contents (i.e., all of its text)?




Re: [O] killing all contents of a headline

2013-02-19 Thread 42 147
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 to be consistent with the C-c @ command.

 Yes that would be good.  To save you some work, I attached a patch.


Precisely what I was looking for. I'm always up for macro creation, but
I didn't want to do so if a command already existed. Always looking to
expand my org-vocabulary.

The @ replacement is also a sensible idea -- can either of you send me
the source code for this? Or how would I update my org-mode to include
it?

Not exactly well-versed in Emacs,

John


2013/2/19 Bastien b...@altern.org

 42 147 aeus...@gmail.com writes:

  Title is self-explanatory. Is there a command that lets me place the
  cursor on a headline and delete its contents (i.e., all of its text)?

 C-c @ C-w

 When using speedy commands (setq org-use-speed-commands t)

 . C-w

 at the beginning of a headline.

 I'm willing to update the . speedy command and use @ instead
 to be consistent with the C-c @ command.

 --
  Bastien



Re: [O] killing all contents of a headline

2013-02-19 Thread 42 147
Thanks, the update worked, however with some post-update oddities:

org-hide-leading stars t hides the stars -- but only if I manually switch
from the Emacs default color theme to my favorite one
(color-theme-renegade). If I leave (color-theme-renegade) in my init, on
boot-up, org-mode does not hide the stars.

This never used to happen.

Secondly, now I have a bunch of information in my modeline that I had
customized out -- the names of headlines and sub-headlines at point.

While a nice feature, I prefer my modeline *only* to read what I had before
(the git branch I am on).

2013/2/19 Bastien b...@altern.org

 Hi John,

 42 147 aeus...@gmail.com writes:

  The @ replacement is also a sensible idea -- can either of you send
  me the source code for this? Or how would I update my org-mode to
  include it?

 If you want to use Org development branch, simply clone and build:

 ~$ git clone git://orgmode.org/org-mode.git
 ~$ cd org-mode
 ~$ make

 Then make sure you set the correct `load-path'.

 See http://orgmode.org/org.html#Installation for details.

 The change Suvayu sent is now in master.

  Not exactly well-versed in Emacs,

 You'll soon get hooked, dont worry :)

 --
  Bastien



Re: [O] subscribing to this mailing list with gnus

2013-02-07 Thread 42 147
How do I subscribe? I haven't been able to find a working address.

Thanks.

2013/2/7 Bastien b...@altern.org

 Hi John,

 42 147 aeus...@gmail.com writes:

  I don't know the correct port / address within the context of this
  code:
 
  (setq gnus-select-method
  '(nntp gmane.emacs.orgmode
(nntp-port-number 119)))

 Please ask this to the Gnus mailing list.

 Thanks,

 --
  Bastien



Re: [O] subscribing to this mailing list with gnus

2013-02-07 Thread 42 147

 The working address should be   news.gmane.org
 I didn't specify a port-number.

 You can add a Server (^^ in the groups-buffer) with gnus-select-method
 nntp and server news.gmane.org:

 (setq gnus-select-method (quote (nntp news.gmane.org)))

 After opening the server Space the list of groups will downloaded
 (takes a few minutes) and you can subscribe with u

 Sure, the experts can explain this better.

Much, much, much thanks -- these simple instructions were exactly what I
was looking for, in particular the code to add to my .gnus.el.

I am responding right now in gnus.




[O] subscribing to this mailing list with gnus

2013-02-06 Thread 42 147
I don't know the correct port / address within the context of this code:

(setq gnus-select-method
'(nntp gmane.emacs.orgmode
  (nntp-port-number 119)))


Re: [O] viewing number of nested headlines

2013-02-05 Thread 42 147
Maybe you could point me in the right direction; somewhere in the code,
org-mode must be aware of the number of nested headlines in order for
show-branches and show-children to work. Or maybe it is not.

In any case, I'd try and adapt the code to display a number indicating (1)
position in the hierarchy; and (2) number of headlines at that / those
position(s).

Apologies if the original message was poorly articulated.

2013/2/5 Bastien b...@altern.org

 42 147 aeus...@gmail.com writes:

  Is there a way to see how many nested headlines there are within a
  higher-level headline (not necessarily top-level)?

 This is a nice feature of VimOrganizer but no, there is no way to do
 this with Org for now.

 --
  Bastien



Re: [O] viewing number of nested headlines

2013-02-05 Thread 42 147
 Hi 42 (what's your other name?)

John is my real first name.

. . .

As for the rest, I didn't see some of the other replies, because the
org-mode mailing list moves a little two fast for my mailbox, and I prefer
to read selectively from the gmane archive.

That said, it is my responsibility to check that website before responding
to (some) of the messages that get forwarded to my e-mail address in a
thread I started.

Anyway, checking out some of the other solutions, since many were provided.
Thanks for the technical background on how headlines work in the code.

2013/2/5 Bastien b...@altern.org

 Hi 42 (what's your other name?)

 42 147 aeus...@gmail.com writes:

  Maybe you could point me in the right direction; somewhere in the
  code, org-mode must be aware of the number of nested headlines in
  order for show-branches and show-children to work. Or maybe it is
  not.

 It is not.  Long story short: folding a headline works by adding a
 text overlay with the invisible property, and finding the end of the
 overlay works by finding another headline of the same level.  So there
 is no nothing of jumping by N subtrees.

 Still, you can fetch the number of invisible headline in a folded
 subtree *afterwards* -- I assumed this is what François' code does.

  In any case, I'd try and adapt the code to display a number
  indicating (1) position in the hierarchy; and (2) number of
  headlines at that / those position(s).

 This could end up in a minor mode or simply a feature that people
 could turn on and off.  But beware of the efficiency: with many
 headlines, the folding features of Org combined with this feature
 could become quite slow.

  Apologies if the original message was poorly articulated.

 No problem, that's part of the game.

 Thanks,

 --
  Bastien



[O] tagging text, not headlines

2013-02-04 Thread 42 147
I want to avoid over-headlining data.

So in my playlist, I will list the songs as text, rather than as headlines.
The problem is, I'd like to tag, in the following example, (8) Beata
Viscera
as my favorite composition in the Hilliard Ensemble performance.

** Classical
*** Pérotin
 Description

Pérotin (fl. c. 1200), also called Perotin the Great, was a European
composer, believed to be French, who lived around the end of the 12th and
beginning of the 13th century. He was the most famous member of the Notre
Dame school of polyphony and the ars antiqua style.
 Performances
* The Hilliard Ensemble

(1) Viderunt Omnes
(2) Veni Creator Spiritus
(3) Alleluia Posui Adiutorium
(4) O Maria Virginei
(5) Dum Sigillum
(6) Isalas Cecinit
(7) Alleluia Nativitas
(8) Beata Viscera
(9) Sederunt Principes


[O] viewing number of nested headlines

2013-02-04 Thread 42 147
Is there a way to see how many nested headlines there are within a
higher-level headline (not necessarily top-level)?


Re: [O] tagging text, not headlines

2013-02-04 Thread 42 147
Sometimes I forget what org-mode is built on...

It would be nice to keep things in the org-style (e.g., :favorite song: is
preferable to --- favorite song, just on rudimentary aesthetic grounds.

But what you suggested will do.

2013/2/4 Bastien b...@altern.org

 42 147 aeus...@gmail.com writes:

  I want to avoid over-headlining data.
 
  So in my playlist, I will list the songs as text, rather than as
  headlines.
  The problem is, I'd like to tag, in the following example, (8) Beata
  Viscera
  as my favorite composition in the Hilliard Ensemble performance.
 
  ** Classical
  *** Pérotin
   Description
 
  Pérotin (fl. c. 1200), also called Perotin the Great, was a European
  composer, believed to be French, who lived around the end of the 12th
  and
  beginning of the 13th century. He was the most famous member of the
  Notre
  Dame school of polyphony and the ars antiqua style.
   Performances
  * The Hilliard Ensemble
 
  (1) Viderunt Omnes
  (2) Veni Creator Spiritus
  (3) Alleluia Posui Adiutorium
  (4) O Maria Virginei
  (5) Dum Sigillum
  (6) Isalas Cecinit
  (7) Alleluia Nativitas
  (8) Beata Viscera
  (9) Sederunt Principes

 Tagging outside headlines doesn't really make sense in Org,
 as all tagging-related features need the tag to be on the headline.

 But you can still use... plain text + emacs power:


   (8) Beata Viscera - My favorite song!

 M-x occur RET favorite RET

 HTH,

 --
  Bastien



[O] org-copy-subtree

2013-02-02 Thread 42 147
I want to copy the text in the subtree, but not the headline. Right now I
use the following hack:

  (org-narrow-to-subtree)
  (beginning-of-buffer)
  (next-line 1)
  (setq minPoint (point))
  (copy-region-as-kill minPoint (point-max))
  (widen)

However, org-copy-subtree would do exactly what I need, IF it did not copy
the headline. Then I could cut out four lines of the above code.


Re: [O] managing a playlist

2013-01-20 Thread 42 147
I appreciate the detailed reply, but org-tables is less tidy and browsable
than my simple hierarchy of nested headings; unless I misunderstood your
instructions. I copy / pasted what you wrote (starting with #+BEGIN) and
enabled interactive column view. But aside from a flashy change of colors
and borders, I don't see an improvement in functionality. What other
commands do you use in this mode when managing playlists? I could very well
be missing something here.


2013/1/20 Michael Brand michael.ch.br...@gmail.com

 On Sat, Jan 19, 2013 at 3:07 PM, 42 147 aeus...@gmail.com wrote:
  What's the best way to keep a playlist in org-mode?
 
  I just want to keep a list of everything I like. Right now my format is:
 
   Judas Priest
  * Painkiller (1990)
  ** (2) Hell Patrol
  ** (6) Night Crawler
  ** (7) Between the Hammer and the Anvil
   At The Gates
  * Slaughter of the Soul (1995)
  ** (1) Blinded By Fear
  ** (2) Slaughter of the Soul
  ** (3) Cold
  ** (4) Under A Serpent Sun
   Megadeth
  * Killing is My Business (1985)

 For what it’s worth, a good way for my requirements:

 Since anyway I discover and cherry-pick songs and focus on songs
 rather than albums, especially for more recent music, I decided to
 move from the common path format “Judas Priest - 1990 Painkiller - 02
 Hell Patrol” to the much simpler “Judas Priest - Hell Patrol”. The
 album information is moved to _optional_ properties. It allows to add
 songs much quicker, without losing the time to find out the album
 year, name and track only to be able to insert the new song into the
 right path.

 The songs are in alphabetical order of its title. Album information
 can be left empty and if added later doesn’t disturb the song’s path
 and the ordering. I put up with the resulting scattering of albums.
 Should I care about this in a rare case of a complete album, a
 playlist for the album is perfect. E. g. M3U. Most of the times I have
 very few songs per album, often only one.

 Songs released more than once like in Best Of albums are not
 duplicated. Case by case the properties for the album may be left
 empty or contain the first released, the acquired or even several
 albums e. g. concatenated in the field value. No concerns anymore also
 on how to resolve this with the common path format and with complete
 albums.

 how the interactive column view in the buffer (C-c C-x C-c) looks like:
 #+BEGIN: columnview
 | artist - title   | * | year | album   | tr |
 |--+---+--+-+|
 | * Judas Priest   |   |  | ||
 | *** Between the Hammer and the Anvil | 1 | 1990 | Painkiller  | 07 |
 | *** Come and Get It  | 5 | 1988 | Ram It Down | 04 |
 | *** Hell Patrol  | 4 | 1990 | Painkiller  | 02 |
 | * Lou Reed   |   |  | ||
 | *** Perfect Day  |   |  | ||
 | * The Jolly Boys |   |  | ||
 | *** Perfect Day  | 3 |  | ||
 #+END:

 file content:
 #+STARTUP: odd
 #+COLUMNS: %30ITEM(artist - title) %1rating(*) %4year %20album %2track(tr)
 * Judas Priest
   - [[http://en.wikipedia.org/wiki/Judas_Priest]]
   - [[http://www.judaspriest.com]]
   - bla bla
 *** Between the Hammer and the Anvil
 :PROPERTIES:
 :rating:   1
 :year: 1990
 :album:Painkiller
 :track:07
 :END:
 - [[http://www.youtube.com/watch?v=Ycte4mmN8l4]]
 *** Come and Get It
 :PROPERTIES:
 :rating:   5
 :year: 1988
 :album:Ram It Down
 :track:04
 :END:
 *** Hell Patrol
 :PROPERTIES:
 :rating:   4
 :year: 1990
 :album:Painkiller
 :track:02
 :END:
 * Lou Reed
 *** Perfect Day
 :PROPERTIES:
 :ID:   d25f4624-7c1d-40b3-8f53-5175696d4254
 :END:
 - [[http://en.wikipedia.org/wiki/Perfect_Day_(Lou_Reed_song)]]
 - covered by:
   - Patti Smith
   - The Jolly Boys: [[id:0a4045c5-428f-4ffd-9e90-ed2558355d11]]
   - for more cover versions see
 [[
 http://en.wikipedia.org/wiki/Perfect_Day_(Lou_Reed_song)#Other_versions]]
 * The Jolly Boys
 *** Perfect Day
 :PROPERTIES:
 :ID:   0a4045c5-428f-4ffd-9e90-ed2558355d11
 :rating:   3
 :discovered: [2010-09-30 Thu]
 :END:
 - covers Lou Reed: [[id:d25f4624-7c1d-40b3-8f53-5175696d4254]]
 - [[file:/podcasts/radio_station/music_show/2010-09-29.mp3::01:09:43]]
   (this link starts the podcast MP3 file at the position where the
   song was played)
 - bla bla

 Michael



[O] managing a playlist

2013-01-19 Thread 42 147
What's the best way to keep a playlist in org-mode?

I just want to keep a list of everything I like. Right now my format is:

 Judas Priest
* Painkiller (1990)
** (2) Hell Patrol
** (6) Night Crawler
** (7) Between the Hammer and the Anvil
 At The Gates
* Slaughter of the Soul (1995)
** (1) Blinded By Fear
** (2) Slaughter of the Soul
** (3) Cold
** (4) Under A Serpent Sun
 Megadeth
* Killing is My Business (1985)

etc.


[O] C / C++ Standard org file

2013-01-08 Thread 42 147
Has anyone made an org file out of the C / C++ standards? Would make
looking things up much more convenient.


[O] hiding footnotes

2012-11-28 Thread 42 147
Self-explanatory. I like how org-mode handles footnotes, but I want an
option to hide them while reading (for they are distracting).


Re: [O] hiding footnotes

2012-11-28 Thread 42 147
Reading an org-file. I should note, it is the highlighting that is the
problem, not the footnote itself. If I could somehow toggle it to the color
of the text, that would solve my problem.

For example, the [16] here is a distraction:

* Chomsky
** Books
*** Deterring Democracy
 Chapter 1. Cold War: Fact and Fancy
** (1) The Cold War as Ideological Construct
** Overview
** The Orthodox Version
*** No Justification Provided
 Worship Of The State As Secular Religion

Though the sophistication of traditional theology is lacking, the
similarity of themes and style is striking. It reveals the extent to
which worship of the state has become a secular religion for which the
intellectuals serve as priesthood. The more primitive sectors of
Western culture go further, fostering forms of idolatry in which such
sacred symbols as the flag become an object of forced veneration, and
the state is called upon to punish any insult to them and to compel
children to pledge their devotion daily, while God and State are
almost indissolubly linked in public ceremony and discourse, as in
James Reston's musings on our devotion to the will of the Creator. It
is perhaps not surprising that such crude fanaticism rises to such an
extreme in the United States, as an antidote for the unique freedom
from state coercion that has been achieved by popular struggle. [16]

On Wed, Nov 28, 2012 at 9:17 AM, John Hendy jw.he...@gmail.com wrote:


 On Wed, Nov 28, 2012 at 7:03 AM, 42 147 aeus...@gmail.com wrote:

 Self-explanatory. I like how org-mode handles footnotes, but I want an
 option to hide them while reading (for they are distracting).



 Reading what? The org file or resultant PDF? If you're talking about the
 org file, I don't think there's going to be a way, but I could be wrong. If
 you can give more specifics, that would be helpful -- is it the [fn:1] you
 find distracting?


 John



Re: [O] hiding footnotes

2012-11-28 Thread 42 147
Very nice.

However, I'd like to write a function that toggles the color value (without
recourse to the customize menu), since it would be useful to highlight the
footnotes from time to time.

After some tests, it is clear I also disliked the underlining.

On Wed, Nov 28, 2012 at 12:26 PM, Jambunathan K kjambunat...@gmail.comwrote:


  Reading an org-file. I should note, it is the highlighting that is the
  problem, not the footnote itself. If I could somehow toggle it to the
  color of the text, that would solve my problem.

 Put your cursor on the footnote.  Then do

 C-u C-x =

 In the resulting buffer, toward the end, you will see something like
 this.

 ,
 | There are text properties here:
 |   face org-footnote
 |   font-lock-fontified  t
 |   font-lock-multiline  t
 |   fontifiedt
 |   help-echoFootnote reference
 |   keymap   [Show]
 |   mouse-face   highlight
 |   org-category test-new
 |   org-no-flyspell  t
 `

 Click on the face property (which is `org-footnote').  Click on
 customize this face link.  Change the face foreground color to
 whatever you want.

 Or

 A fast way to do that would be
 M-x customize-face RET org-footnote RET

 You can also try
 M-x customize-group RET org-faces RET
 --



Re: [O] hiding footnotes

2012-11-28 Thread 42 147
I should add that Tyree's idea is what I was looking for originally
(changing the face to the text font at least fixed readability).

Ideally, instead of jumping to the footnote section, it would be
collapsible / expandable, much like headings.

Right now having a dedicated footnote section is better than having the
footnote embedded in the body of the text as a giant distracting
parenthesis. That is the worst functionality among the options here.

On Wed, Nov 28, 2012 at 10:24 PM, 42 147 aeus...@gmail.com wrote:

 Very nice.

 However, I'd like to write a function that toggles the color value (without
 recourse to the customize menu), since it would be useful to highlight the
 footnotes from time to time.

 After some tests, it is clear I also disliked the underlining.


 On Wed, Nov 28, 2012 at 12:26 PM, Jambunathan K kjambunat...@gmail.comwrote:


  Reading an org-file. I should note, it is the highlighting that is the
  problem, not the footnote itself. If I could somehow toggle it to the
  color of the text, that would solve my problem.

 Put your cursor on the footnote.  Then do

 C-u C-x =

 In the resulting buffer, toward the end, you will see something like
 this.

 ,
 | There are text properties here:
 |   face org-footnote
 |   font-lock-fontified  t
 |   font-lock-multiline  t
 |   fontifiedt
 |   help-echoFootnote reference
 |   keymap   [Show]
 |   mouse-face   highlight
 |   org-category test-new
 |   org-no-flyspell  t
 `

 Click on the face property (which is `org-footnote').  Click on
 customize this face link.  Change the face foreground color to
 whatever you want.

 Or

 A fast way to do that would be
 M-x customize-face RET org-footnote RET

 You can also try
 M-x customize-group RET org-faces RET
 --





Re: [O] hiding footnotes

2012-11-28 Thread 42 147
I added this to my .emacs:

(defun t-face ()
to pass org-footnote automatically to toggle-face
  (interactive)
(toggle-face 'org-footnote))

(defun toggle-face (optional face-from)
  (interactive (list (read-face-name Face (face-at-point
  (let ((f (assq face-from face-remapping-alist))
(face-to 'default))
(if f (setq face-remapping-alist (delq f face-remapping-alist))
  (push (cons face-from face-to) face-remapping-alist


On Thu, Nov 29, 2012 at 1:20 AM, Jambunathan K kjambunat...@gmail.comwrote:

 Nick Dokos nicholas.do...@hp.com writes:

  42 147 aeus...@gmail.com wrote:
 
  Very nice.
 
  However, I'd like to write a function that toggles the color value
 (without
  recourse to the customize menu), since it would be useful to highlight
 the
  footnotes from time to time.
 
 
  Anything that can be done interactively can also be done
  programatically. You know what face you are dealing with, you can get
  its foreground color with face-foreground, and you can set it with
  set-face-attribute. A crude implementation to show the basic outline:
 
 
  (setq org-footnote-fg-color (face-foreground 'org-footnote))
 
  (setq org-text-fg-color (face-foreground 'default))
 
  (defun my-toggle-footnote-fg-color ()
Toggle the org-footnote face foreground color.
(interactive)
(let ((fg (face-foreground 'org-footnote)))
  (if (string-equal fg org-footnote-fg-color)
(set-face-attribute 'org-footnote nil :foreground
 org-text-fg-color)
(set-face-attribute 'org-footnote nil :foreground
 org-footnote-fg-color
 
 
  The difficulties start (but do not end) with footnotes in all sorts of
  weird places (e.g. headlines) with all sorts of different
  fontifications. You'd want to blend the footnote with its immediate
  surroundings.
 
  Taking care of such situations (and various others that the above code
  mishandles) is left as an exercise...

 Install the following defun, put the cursor on fontified text and do M-x
 toggle-face.

 (defun toggle-face (optional face-from)
   (interactive (list (read-face-name Face (face-at-point
   (let ((f (assq face-from face-remapping-alist))
 (face-to 'default))
 (if f (setq face-remapping-alist (delq f face-remapping-alist))
   (push (cons face-from face-to) face-remapping-alist

 See also (info (elisp) Face Remapping)



  Nick
 
 

 --



[O] nested org-headlines

2012-11-27 Thread 42 147
(1) is possible, but not (2) and (3), (3) being what I want (though (2)
would be nice).

(1)

 * HEADLINE

 Text about main topic.

 *** INLINE TASK

 Text about tangent from main topic.

 *** END

 Continuation of main topic.

(2)

 * HEADLINE

 Text about main topic.

 *** INLINE TASK

 Text about tangent from main topic.

 ** NESTED INLINE TASK

 Text about tangent from tangent from main topic.

 ** END

 Text about tangent from main topic continued.

 *** END

 Continuation of main topic.

(3)

 * HEADLINE

 Text about main topic.

 *** INLINE TASK

 Text about tangent from main topic

 ** SECOND-ORDER HEADLINE ABOUT TANGENT

 Text about sub-topic mentioned in tangent

 ** ANOTHER SECOND-ORDER HEADLINE ABOUT TANGENT

 Text about a different sub-topic mentioned in tangent.

[no return to the first-order tangent]

 *** END

 Continuation of main topic.