View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-22-2012, 03:16 AM   #1
Registered: Jul 2007
Location: Turkey
Distribution: Slackware64 14.1
Posts: 30

Rep: Reputation: 15
Change which buffers loaded by default when Emacs is launched

Dear all,

Is there a way to change the buffers loaded by default when you first open Emacs? In my case, for I use "ESS" it is loaded by default along with the common "scratch" and "Messages" buffers. However, when I open multiple files in Emacs, switching through buffers with C-x and arrow keys becomes a pain due to its visiting also those default buffers along with the files in buffers I intentionally opened. And this is a waste of time and confusion for me each time. I would be glad if you can help me on the matter.

Old 02-22-2012, 08:12 PM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286Reputation: 1286

this is a common issue.

It seems you can automatically close buffers with lines like the following:
(kill-buffer "*scratch*")
An alternative, and perhaps better approach is to tell emacs to ignore those buffers when cycling through the buffer list. Searching the web reveals many different approaches to achieve this. Try a search like the following.




buffer, emacs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs: Enable minor mode in all buffers nb85 Programming 4 12-18-2014 11:32 AM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 11:01 AM
How do you change default emacs behavior on .h files? BrianK Programming 4 02-26-2008 08:11 PM
LXer: Emacs tips: Windows and buffers LXer Syndicated Linux News 0 06-01-2006 10:03 AM
.emacs file and Scheme buffers jrdioko Linux - Software 0 10-01-2005 12:22 AM

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration