[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] AUCTeX and bs-show goodness

From: Shug Boabby
Subject: [AUCTeX] AUCTeX and bs-show goodness
Date: Sun, 23 Oct 2005 22:45:13 +0100

i posted a question to this list about getting AUCTeX to auto delete all the extra buffers it creates when compiling a file. here is a little workaround for those who would rather be ignorant (ie not see the extra buffers) than actually closing the buffers. this setup means that buffer navigation will ignore the _region_ and output files (but C-c C-l will still bring you to the output).

but i would still really like to hear from anyone if they could please tell me of any hooks for running commands on the output buffer and the _region_ buffer after compilation. optimally i'd like to mark the output buffer as temporary with tempbuf and close _region_ and also the master file (but only if the C-c C-b command opened it for us). or optionally, from anyone who has a neat AUCTeX/tempbuf setup.

(add-to-list 'bs-configurations ; Create a new buffer list config
             '("shug" "\\*scratch\\*\\|\\*Python\\*" nil ; show scratch
               "_region_\\.tex"         ; don't show _region_.tex files
               bs-visits-non-file       ; only show files
               bs--sort-by-name))       ; sort the buffer list by name
(setq bs-default-configuration "shug")

(global-set-key [(control b)] 'bs-show)
(global-set-key [(control x) (left)] 'bs-cycle-previous)
(global-set-key [(control x) (right)] 'bs-cycle-next)
(global-set-key [(control x) (control b)] 'electric-buffer-list)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]