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

2015-06-28 Thread Mosè Giordano
Hi Carlos, AUCTeX expects the input file to have an extension. Try setting `TeX-default-extension' to the empty string and change the last three lines of the definition of `TeX-master-file' to (if (null (zerop (length extension))) (concat name . extension) name This should make

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

2015-06-28 Thread Carlos
Hi Carlos, AUCTeX expects the input file to have an extension. Try setting `TeX-default-extension' to the empty string and change the last three lines of the definition of `TeX-master-file' to (if (null (zerop (length extension))) (concat name . extension) name This

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

2015-06-27 Thread Carlos
Ivan thanks for the reply. I appreciate it. I forgot to mention it in the last post. Take care. ___ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel

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

2015-06-27 Thread Carlos
Ivan Andrus darthand...@gmail.com writes: 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 again. I had the above suggestion in .emacs, that is, the (add-hook 'find-file-hook

[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

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 linguafa...@gmail.com wrote: I know, I know. If it isn't the filename (I read somewhere that a separator will do