[AUCTeX-devel] latex-mode or context-mode in startup

2015-06-25 Thread Carlos
Hello Mosè and Tassilo. The aim is to load either latex-mode or context-mode regardless of the extension used. And whether that is a tex file extension, or abc, or xyz. With the assumption that emacs and auctex are solely used for typesetting purposes. (add-to-list 'auto-mode-alist '("\\|\\'" .

Re: [AUCTeX-devel] latex-mode or context-mode in startup

2015-06-25 Thread Carlos
I know, I know. If it isn't the filename (I read somewhere that a separator will do the trick), nor the extension of the file, it must be the contents of the file. Some people will say that that it's far off. Since they have to work with other languages. But other languages have implemted a regu

Re: [AUCTeX-devel] latex-mode or context-mode in startup

2015-06-25 Thread Ivan Andrus
I’m not entirely sure I understand what you’re looking for, but does (add-hook 'find-file-hook #'latex-mode) do what you want? -Ivan > On Jun 25, 2015, at 6:56 AM, Carlos wrote: > > I know, I know. > > If it isn't the filename (I read somewhere that a separator will do the > trick), nor

Re: [AUCTeX-devel] latex-mode or context-mode in startup

2015-06-25 Thread Carlos
>I’m not entirely sure I understand what you’re looking for, but does > (add-hook 'find-file-hook #'latex-mode) > do what you want? >-Ivan Ivan, hello, how 've you been man? But the suggestion with the (add-hook 'find-file-hook #'latex-mode) takes me to point A, with its View instead of LaT