* How to load latest opened files? Or load specific files?
@ 2008-09-01 23:18 ssecorp
2008-09-02 3:41 ` B. T. Raven
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ssecorp @ 2008-09-01 23:18 UTC (permalink / raw)
To: help-gnu-emacs
Can I somehow make a command like "open the files that were open last
time emacs was used"?
And can I set a command to open for example:
haskell-mode
c:/mypath/haskell/someprogram.hs
?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to load latest opened files? Or load specific files?
2008-09-01 23:18 How to load latest opened files? Or load specific files? ssecorp
@ 2008-09-02 3:41 ` B. T. Raven
2008-09-02 11:22 ` Bernardo Bacic
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: B. T. Raven @ 2008-09-02 3:41 UTC (permalink / raw)
To: help-gnu-emacs
ssecorp wrote:
> Can I somehow make a command like "open the files that were open last
> time emacs was used"?
>
> And can I set a command to open for example:
> haskell-mode
> c:/mypath/haskell/someprogram.hs
>
> ?
Look at Menu Options > Customize Emacs > Specific Option
recentf- tab
The settings I made inserted
'(recentf-max-menu-items 20)
'(recentf-max-saved-items 40)
'(recentf-mode t nil (recentf))
into (Custom-set-variables ...
in my .emacs
There are many recentf options I haven't tried. The defaults seemed
appropriate.
There is also something called session.el but I don't know how to
install it.
Ed
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to load latest opened files? Or load specific files?
2008-09-01 23:18 How to load latest opened files? Or load specific files? ssecorp
2008-09-02 3:41 ` B. T. Raven
@ 2008-09-02 11:22 ` Bernardo Bacic
2008-09-11 18:30 ` Oleksandr Gavenko
2008-09-11 18:45 ` Charles Sebold
3 siblings, 0 replies; 5+ messages in thread
From: Bernardo Bacic @ 2008-09-02 11:22 UTC (permalink / raw)
Cc: help-gnu-emacs
it was a dark and stormy night when ssecorp said,
> Can I somehow make a command like "open the files that were open last
> time emacs was used"?
see Saving Emacs Sessions in the manual:
M-: (info "(emacs)Saving Emacs Sessions")
>
> And can I set a command to open for example:
> haskell-mode
> c:/mypath/haskell/someprogram.hs
>
if i understand the question correctly this should be handled by major modes
M-: (info "(emacs)Major Modes")
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to load latest opened files? Or load specific files?
2008-09-01 23:18 How to load latest opened files? Or load specific files? ssecorp
2008-09-02 3:41 ` B. T. Raven
2008-09-02 11:22 ` Bernardo Bacic
@ 2008-09-11 18:30 ` Oleksandr Gavenko
2008-09-11 18:45 ` Charles Sebold
3 siblings, 0 replies; 5+ messages in thread
From: Oleksandr Gavenko @ 2008-09-11 18:30 UTC (permalink / raw)
To: help-gnu-emacs
ssecorp wrote:
> Can I somehow make a command like "open the files that were open last
> time emacs was used"?
>
> And can I set a command to open for example:
> haskell-mode
> c:/mypath/haskell/someprogram.hs
>
> ?
In my .emacs I put
;; ----------------------------------------------
;; *Recentf*
;; Recent files in menu
(require 'recentf)
(recentf-mode t)
(setq recentf-max-saved-items 200)
(global-set-key (kbd "\e\eq") 'recentf-open-files)
If I need file with wich I recently worked I type <Esc> <Esc> q and
search by C-s for a needed file.
Such method take advantage in speed from finding file by C-x C-f or in
Dired.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to load latest opened files? Or load specific files?
2008-09-01 23:18 How to load latest opened files? Or load specific files? ssecorp
` (2 preceding siblings ...)
2008-09-11 18:30 ` Oleksandr Gavenko
@ 2008-09-11 18:45 ` Charles Sebold
3 siblings, 0 replies; 5+ messages in thread
From: Charles Sebold @ 2008-09-11 18:45 UTC (permalink / raw)
To: help-gnu-emacs
On 1 Sep 2008, ssecorp wrote:
> Can I somehow make a command like "open the files that were open last
> time emacs was used"?
>
> And can I set a command to open for example:
> haskell-mode
> c:/mypath/haskell/someprogram.hs
Also check out the Desktop functionality:
(info "(emacs)Saving Emacs Sessions")
Or:
C-h r m saving e RET
--
Charles Sebold 11th of September, 2008
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-11 18:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 23:18 How to load latest opened files? Or load specific files? ssecorp
2008-09-02 3:41 ` B. T. Raven
2008-09-02 11:22 ` Bernardo Bacic
2008-09-11 18:30 ` Oleksandr Gavenko
2008-09-11 18:45 ` Charles Sebold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).