Re: [O] add-change-log-entry for orgfiles, header

2016-10-14 Thread Eric S Fraga
On Friday, 14 Oct 2016 at 16:58, Uwe Brauer wrote:

[...]

> Could there be such an extension for orgmode to get an entry such as
> 2016-10-14  Uwe Brauer  
>
>   * remember.org * Sun Sep 25 19:03:04 2016 (HG): undo strip.
>

Looking at the vc.el code, there is the following comment which may
allow you to accomplish effectively the same thing although in the
reverse order (commit and then update changelog)?

;; If your site uses the ChangeLog convention supported by Emacs, the
;; function `log-edit-comment-to-change-log' could prove a useful checkin hook,
;; although you might prefer to use C-c C-a (i.e. `log-edit-insert-changelog')
;; from the commit buffer instead or to set `log-edit-setup-invert'.

(untested)

but I may have completely misunderstood your question and, if so,
apologies for the noise!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.2.50.1, Org release_8.3.6-1184-g29830f



Re: [O] [RFC] Change visibility for bracket links

2016-10-14 Thread Thomas S. Dye
Aloha Joost,

Joost Kremers writes:

> On Mon, Oct 10 2016, Clément Pit--Claudel wrote:
>> Agreed.  I'd be curious to get feedback from users of 
>> prettify-symbols-mode, too.  And to know whether your objections 
>> apply as strongly to just revealing the brackets when the point 
>> is on them (not when they are being moused over) 
>
> I don't use prettify-symbols-mode, but I am a fairly heavy user of 
> AUCTeX's TeX-fold-mode, which hides all sorts of LaTeX code (and 
> can be customised to hide even more in quite sophisticated ways). 
> For example, it shows
>
> This is some \textit{emphasised} text.
>
> as 
>
> This is some emphasised text.
>
> with the word "emphasised" in a different colour (to indicate that 
> it's been folded) and with whatever fontification the argument of 
> the \textit macro gets (italicised by default). 
>
> Now, TeX-fold-mode has the behaviour you mention: as soon as you 
> move point (not the mouse cursor) "into" some folded text, it gets 
> unfolded (with | indicating point):
>
> This is some |\textit{emphasised} text.
>
> with the part "\textit{emphasised}" highlighted to indicate that 
> it's actuall folded.
>
> Personally, I'm a *big* fan of this behaviour, even though I use 
> visual-line-mode in my LaTeX buffers, which means that when text 
> is temporarily unfolded, the paragraph may rewrap (and wrap back 
> when point leaves the unfolded text causing it to be folded 
> again). Since there is visual feedback (from the font colour) that 
> some word or stretch of text is folded, I know that the text will 
> unfold when I move point into it, so I don't find it distracting. 
> The fact that the rest of the paragraph may rewrap is also not an 
> issue for me, because I'm not actually focussing on that part of 
> the text.
>
> Personally, I've also always found it annoying in Org that editing 
> around links (or emphasis etc. with `org-hide-emphasis-markers' 
> set to t) is unpredictable and I never really understood why 
> functionality similar to TeX-fold-mode hadn't been implemented. I 
> thinks it's a very straightforward and easy to understand method 
> for indicating which character point is actually on, making 
> editing much more comfortable.
>
> Just my €0.02, of course.

Agreed.  Also, mousing over the folded text shows the unfolded text in
the minibuffer.

All the best,
Tom

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



[O] add-change-log-entry for orgfiles, header

2016-10-14 Thread Uwe Brauer
Hi

I have a couple of org files under VC (HG).
For lisp and latex files my workflow is as follows


-  add-change-log-entry, which adds a nice reference like
* emacs_keys.el ([(control super b)]): New:
(global-set-key [(control super b)] 'ahg-heads)


-  then call vc-next-action which offers to insert the recent added
   entry of the Changelog file.

-  Long time ago Carsten Dominik wrote some addons for latex files
   so that references to sections are inserted in a ChangeLog file.

Could there be such an extension for orgmode to get an entry such as
2016-10-14  Uwe Brauer  

* remember.org * Sun Sep 25 19:03:04 2016 (HG): undo strip.

Or what ever value the header has.

Regards

Uwe Brauer 




[O] How to export tables to files from elips?

2016-10-14 Thread Pierre-Henry Frohring
Hi list!

Is there a way `f' such that `(f filename)' exports tables in the file
`filename'
to corresponding files as described by TABLE_EXPORT_FILE property?

For context:
https://github.com/phfrohring/org-to-blog/blob/c1312aeff1c097c3761d0b6bc84d3bb89edf2df4/org_to_blog.el#L87

Thx!
​


Re: [O] gnus org and tags

2016-10-14 Thread Eric S Fraga
On Thursday, 13 Oct 2016 at 16:02, Nick Dokos wrote:

[...]

> I have a single notes.org file (not an agenda file), where I do exactly what
> Eric described and I have defined keys to get to it fast: no more "where did I

As do I.  I guess this is a key part of this use case: it must be easy
to find those notes.  My (abridged) capture template looks like this:

#+begin_src emacs-lisp
  (setq org-capture-templates
'(
  ("m" "Mail options")
  ("mt" "mailtodo"
   entry (file+datetree "~/s/notes/tasks.org")
   "* TODO %^{Task} : %:subject %^G\nSCHEDULED: %t\n- From :: %:from\n- 
Subject :: %:subject\n- Email :: %a\n\n%?" :kill-buffer t)
  ("mn" "mailnote"
   entry (file+headline "~/s/notes/notes.org" "general notes and tasks")
   "* %^{Title} : %:subject %^G\n- From :: %:from\n- Subject :: 
%:subject\n- Email :: %a\n\n%?\n\n%U")
  ))
#+end_src

Tag search etc. in org makes finding the notes relatively painless.  

As a bonus, the "mt" template is to allow me to get to INBOX 0 by making
sure I don't leave emails lying around unread or ticked.  If they need
further processing, an appropriate TODO task is created which links back
to the email.  This task is scheduled for immediate action by default
but obviously easily changed during the capture, very often by
unscheduling but adding a deadline, for instance.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.2.50.1, Org release_8.3.6-1184-g29830f