Skip to content

Open untitled new buffer like other text editors in Emacs

Notifications You must be signed in to change notification settings

emacs-jp/untitled-new-buffer.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

untitled-new-buffer.el

MELPA untitled-new-buffer MELPA stable: untitled-new-buffer

In some text editors, the new buffer has no association with the file. This package emulates (unsaved) new buffers.

Key binding

Put the following into your .emacs file (~/.emacs.d/init.el)

(bind-key "M-N" 'untitled-new-buffer-with-select-major-mode)

Customize

You can customize this package by M-x customize-group untitle-new-buffer. Or put the following into your .emacs file.

;; Only modes your know.
(setq untitled-new-buffer-major-modes '(php-mode enh-ruby-mode python-mode sql-mode text-mode prog-mode markdown-mode))
;; Change default buffer name.
(setq untitled-new-buffer-default-name "New File")

About

Open untitled new buffer like other text editors in Emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published