https://github.com/myterminal/emacs-new-buffer
Quickly create new buffers to take notes and more
https://github.com/myterminal/emacs-new-buffer
buffers emacs
Last synced: 7 days ago
JSON representation
Quickly create new buffers to take notes and more
- Host: GitHub
- URL: https://github.com/myterminal/emacs-new-buffer
- Owner: myTerminal
- License: gpl-3.0
- Created: 2017-10-26T12:27:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T05:06:22.000Z (almost 5 years ago)
- Last Synced: 2026-03-08T04:05:29.663Z (3 months ago)
- Topics: buffers, emacs
- Language: Emacs Lisp
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emacs-new-buffer
[](https://marmalade-repo.org/packages/emacs-new-buffer)
[](https://www.gnu.org/licenses/gpl.html)
Quickly create new buffers to take notes and more
## Installation
### Manual
Save the file *emacs-new-buffer.el* to disk and add the directory containing it to `load-path` using a command in your *.emacs* file like:
(add-to-list 'load-path "~/.emacs.d/")
The above line assumes that you've placed the file into the Emacs directory '.emacs.d'.
Start the package with:
(require 'emacs-new-buffer)
### Marmalade
If you have Marmalade added as a repository to your Emacs, you can just install *emacs-new-buffer* with
M-x package-install emacs-new-buffer RET
## Usage
Quickly create a buffer with the name as current timestamp
M-x emacs-new-buffer-now RET
Create a buffer with a specific file extension (hence specific major mode)
M-x emacs-new-buffer-as RET
This is useful when used with a key-binding
(global-set-key (kbd "C-x t") 'emacs-new-buffer-now)
(global-set-key (kbd "C-x y") 'emacs-new-buffer-as)