emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* outline-cycle and AUCTeX
@ 2008-07-23 20:53 Felipe Csaszar
  2008-07-25 16:23 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe Csaszar @ 2008-07-23 20:53 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Using the old outline-magic.el it was possible to do visibility
cycling of a LaTeX file, as it recognized \section, \subsection,
etc... as headings.

Is it possible to accomplish the same using the orgstruct minor mode?
As far as I can see, orgstruct continues to think that asterisks
represent headings, even in LaTeX.

To edit LaTeX files I use AUCTeX + CDLaTeX.

Many thanks!

Felipe

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: outline-cycle and AUCTeX
  2008-07-23 20:53 outline-cycle and AUCTeX Felipe Csaszar
@ 2008-07-25 16:23 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-07-25 16:23 UTC (permalink / raw)
  To: Felipe Csaszar; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1333 bytes --]


On Jul 23, 2008, at 1:53 PM, Felipe Csaszar wrote:

> Hi,
>
> Using the old outline-magic.el it was possible to do visibility
> cycling of a LaTeX file, as it recognized \section, \subsection,
> etc... as headings.
>
> Is it possible to accomplish the same using the orgstruct minor mode?
> As far as I can see, orgstruct continues to think that asterisks
> represent headings, even in LaTeX.
>
> To edit LaTeX files I use AUCTeX + CDLaTeX.
>
> Many thanks!
>
> Felipe

Hi Felipe

As long as you are only after the outline cycling functionality,
you can simply call org-cycle in any mode that runs
outline-minor-mode.  I have this in my customization:

(add-hook 'outline-minor-mode-hook
   (lambda ()
     (define-key outline-minor-mode-map [(control tab)] 'org-cycle)
     (define-key outline-minor-mode-map [(shift tab)] 'org-global- 
cycle)))
(add-hook 'outline-mode-hook
   (lambda ()
     (define-key outline-mode-map [(tab)] 'org-cycle)
     (define-key outline-mode-map [(shift tab)] 'org-global-cycle)))


When you want to do structure editing, you can use reftex, or outline- 
magic.el

- Carsten




>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[-- Attachment #1.2: Type: text/html, Size: 2046 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-25 16:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-23 20:53 outline-cycle and AUCTeX Felipe Csaszar
2008-07-25 16:23 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).