You are not logged in.
Pages: 1
At least I don't think it is. I can't edit the pdf-viewer, can't use the customize auctex menu, etc. Here's my .emacs file:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;; '(TeX-PDF-mode t)
'(inhibit-startup-screen t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; ORG-MODE
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(global-font-lock-mode 1) ; for all buffers
(add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only
;; Scroll bar on right side
(set-scroll-bar-mode 'right)
;; Set Default Font Size
(set-face-attribute 'default nil :height 90)
;; Automatically turn on Paren Match Highlighting
(show-paren-mode 1)
(setq show-paren-style 'expression)
;; Mouse Scrolling
(mouse-wheel-mode t)
;; Show line-number and column-number in the mode line
(line-number-mode 1)
(column-number-mode 1)
;; highlight current line
(global-hl-line-mode 1)
;; Required for auctex
(require 'tex-site)
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
;; Math mode for LaTex
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
;; Spellcheck in LaTex Mode
(add-hook `latex-mode-hook `flyspell-mode)
(add-hook `tex-mode-hook `flyspell-mode)
(add-hook `bibtex-mode-hook `flyspell-mode)
;; Set Frame Size
;;(set-frame-height (selected-frame) 60)
;;--------------------------------------------------------------------
;; Lines enabling gnuplot-mode
;; move the files gnuplot.el to someplace in your lisp load-path or
;; use a line like
;; (setq load-path (append (list "/path/to/gnuplot") load-path))
;; these lines enable the use of gnuplot mode
(autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t)
(autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot mode" t)
;; this line automatically causes all files with the .gp extension to
;; be loaded into gnuplot mode
(setq auto-mode-alist (append '(("\\.gp$" . gnuplot-mode)) auto-mode-alist))
;; This line binds the function-9 key so that it opens a buffer into
;; gnuplot mode
(global-set-key [(f9)] 'gnuplot-make-buffer)
;; end of line for gnuplot-mode
;;--------------------------------------------------------------------
Last edited by iamsmrt (2010-03-23 21:59:26)
Offline
Are you sure this is ok:
[b];; Required for auctex
(require 'tex-site)
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)[/b]
I mean \[b\]\[/b\] tags.
Last edited by n0dix (2010-03-23 21:06:26)
Offline
Are you sure this is ok:
[b];; Required for auctex (require 'tex-site) (load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (setq TeX-auto-save t) (setq TeX-parse-self t)[/b]
I mean \[b\]\[/b\] tags.
I only added those in the forum post to try and highlight the relevant part. Fixed the post.
Last edited by iamsmrt (2010-03-23 21:59:39)
Offline
This is my ~/.emacs file which is set up for templates (from AUR), line numbers (already in emacs) and recent files (already in emacs)
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setenv "PATH" (concat (getenv "PATH") ":/usr/bin/tex"))
(setq exec-path (append exec-path '("/usr/bin/tex")))
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master t)
(setq global-font-lock-mode t)
;;AUCTex
(add-hook 'LaTeX-mode-hook (lambda()
(add-to-list 'TeX-command-list '("XeLaTeX" "%'xelatex%(mode)%' %t"
TeX-run-TeX nil t))
(setq TeX-command-default "XeLaTeX")
(setq TeX-save-query nil)
(setq TeX-show-compilation t)
(setq-default ispell-program-name "aspell")
(setq-default transient-mark-mode t)
(setq TeX-insert-macro)
(setq TeX-insert-macro-default-style)
(setq TeX-insert-quote t)
(setq LaTeX-close-environment t)
(setq TeX-next-error t)
(setq TeX-display-help nil)
(setq TeX-clean t)
(setq LaTeX-clean-output-suffixes t)
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
))
;;recentf stuff
(require 'recentf)
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(global-set-key "\C-x\ \C-r" 'recentf-open-files)
;;TEMPLATE
(require 'template)
(template-initialize)
;;LINUM
(require 'linum)
(global-set-key (kbd "<f6>") 'linum-mode)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi$" ("^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "^landscape$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^\\(?:a5\\(?:comb\\|paper\\)\\)$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^\\(?:a5\\(?:comb\\|paper\\)\\)$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "evince %o -remote %s -raise %o %(outpage)") ("^html?$" "." "firefox %o")))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Offline
This is my ~/.emacs file which is set up for templates (from AUR), line numbers (already in emacs) and recent files (already in emacs)
(load "auctex.el" nil t t) (load "preview-latex.el" nil t t) (setenv "PATH" (concat (getenv "PATH") ":/usr/bin/tex")) (setq exec-path (append exec-path '("/usr/bin/tex"))) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master t) (setq global-font-lock-mode t) ;;AUCTex (add-hook 'LaTeX-mode-hook (lambda() (add-to-list 'TeX-command-list '("XeLaTeX" "%'xelatex%(mode)%' %t" TeX-run-TeX nil t)) (setq TeX-command-default "XeLaTeX") (setq TeX-save-query nil) (setq TeX-show-compilation t) (setq-default ispell-program-name "aspell") (setq-default transient-mark-mode t) (setq TeX-insert-macro) (setq TeX-insert-macro-default-style) (setq TeX-insert-quote t) (setq LaTeX-close-environment t) (setq TeX-next-error t) (setq TeX-display-help nil) (setq TeX-clean t) (setq LaTeX-clean-output-suffixes t) (add-hook 'doc-view-mode-hook 'auto-revert-mode) )) ;;recentf stuff (require 'recentf) (recentf-mode 1) (setq recentf-max-menu-items 25) (global-set-key "\C-x\ \C-r" 'recentf-open-files) ;;TEMPLATE (require 'template) (template-initialize) ;;LINUM (require 'linum) (global-set-key (kbd "<f6>") 'linum-mode) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && gv %f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && gv %f") ("^dvi$" ("^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "^landscape$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^\\(?:a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4\\)$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi$" ("^\\(?:a5\\(?:comb\\|paper\\)\\)$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^\\(?:a5\\(?:comb\\|paper\\)\\)$" "%(o?)xdvi %dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "evince %o -remote %s -raise %o %(outpage)") ("^html?$" "." "firefox %o"))))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )
I tried your .emacs file instead of mine and it still doesn't work. I'm really at a loss here, all I did was install the auctex package from the community repo and added the suggested lines to my .emacs file. Is there anything else you guys did?
Offline
Can't be of more help. I have the same packages that you have.
Question: Does your ~/.emacs file have anything additional which might be blocking Auctex?
Offline
Can't be of more help. I have the same packages that you have.
Question: Does your ~/.emacs file have anything additional which might be blocking Auctex?
I posted everything from my ~/.emacs file above. I reinstalled Arch about a month ago, had AUCTeX working then with the same .emacs file and now nothing works .
EDIT: I think this is unrelated to my .emacs file. Anything I do doesn't seem to affect the loading of AUCTeX.
EDIT #2: Actually, I think AUCTeX is loading it's just that the customize auctex menu doesn't work (so I can edit the pdf viewer) and the fonts are messed up when I try pdflatex through emacs. Also for some reason the "LaTeX" and "Command" menus "disappear" sometimes.
EDIT #3: There is no tex-output-view-style option I could find as specified here http://www.xemacs.org/Documentation/pac … html#SEC63, so I can't edit my pdf viewer..
Last edited by iamsmrt (2010-03-24 04:05:48)
Offline
Re EDIT#2: You are right -- the cutomize auctex menu does not work. I tried to edit the pdf viewer to no avail. I settled on evince which updates automatically when you edit the file, so I have decided that evince is best for me. Your needs may vary.
Regarding the disappearance of the "LaTeX" and "Command" menus -- there is a post on fixing it, and I'm told it will be fixed in an upcoming release of emacs. It's a bug -- and a nuisance.
EDIT#3: Another bug -- to be fixed.
Offline
Regarding the menu issues, the were gone since I used this wrapper in my ~/bin folder to call emacs:
$ cat bin/emacs
#!/bin/bash
#
# Open Emacs with menu guaranteed to open
GDK_NATIVE_WINDOWS=1 /usr/bin/emacs $* &
This way I can customize the auctex menu again.
To know or not to know ...
... the questions remain forever.
Offline
Pages: 1