[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux 86cabce 027/112: Merge pull request #10 from waymondo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux 86cabce 027/112: Merge pull request #10 from waymondo/file-and-buffer-naming-conventions |
Date: |
Wed, 11 Aug 2021 09:57:47 -0400 (EDT) |
branch: elpa/crux
commit 86cabce06b9d6dddab67558824af631a60a7cbc6
Merge: 3c14b4a e6e3221
Author: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Merge pull request #10 from waymondo/file-and-buffer-naming-conventions
Fix file-and-buffer commands inconsistencies
---
crux.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/crux.el b/crux.el
index 7dee0e6..46b46e0 100644
--- a/crux.el
+++ b/crux.el
@@ -188,7 +188,7 @@ point reaches the beginning or end of the buffer, stop
there."
(setq end (line-end-position))
(cons beg end)))
-(defun crux-rename-buffer-and-file ()
+(defun crux-rename-file-and-buffer ()
"Rename current buffer and if the buffer is visiting a file, rename it too."
(interactive)
(let ((filename (buffer-file-name)))
@@ -201,6 +201,8 @@ point reaches the beginning or end of the buffer, stop
there."
(rename-file filename new-name t)
(set-visited-file-name new-name t t)))))))
+(defalias 'crux-rename-buffer-and-file #'crux-rename-file-and-buffer)
+
(defun crux-delete-file-and-buffer ()
"Kill the current buffer and deletes the file it is visiting."
(interactive)
@@ -213,6 +215,8 @@ point reaches the beginning or end of the buffer, stop
there."
(message "Deleted file %s" filename)
(kill-buffer))))))
+(defalias 'crux-delete-buffer-and-file #'crux-delete-file-and-buffer)
+
(defun crux-view-url ()
"Open a new buffer containing the contents of URL."
(interactive)
- [nongnu] elpa/crux db47b78 010/112: Don't promote the default keybindings, (continued)
- [nongnu] elpa/crux db47b78 010/112: Don't promote the default keybindings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 7d4e425 013/112: Add some example keybinding code, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 9330468 016/112: Add missing crux-shell defcustom, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c8ad7c1 017/112: Fix the interactive spec for crux-find-user-init-file, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 61bf2bd 003/112: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 66f4292 006/112: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux aafcf48 009/112: Introduce some customization options, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c174247 014/112: Change crux-kill-like-backward to crux-kill-line-backward, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 0f04d98 015/112: Fix unbound var reference, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3009713 018/112: Update the copyright, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 86cabce 027/112: Merge pull request #10 from waymondo/file-and-buffer-naming-conventions,
ELPA Syncer <=
- [nongnu] elpa/crux 5ee7dc9 032/112: Require tramp for `tramp-tramp-file-p`, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux b07b31a 005/112: Move a function around, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux b5eac2a 008/112: Code style, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3088be2 012/112: Add a way to make commands operate on either a region or a buffer, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 16eb56d 011/112: Kill crux-setup-default-keybindings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux d2643ae 019/112: Add crux-ispell-word-then-abbrev, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 382834e 020/112: Fix contributors link, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux e6e3221 025/112: Fix crux-*-file-and-buffer commands inconsistencies and alias the inverse, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 4c90762 026/112: Add complementary `with-region-or-line` & `with-region-or-point-to-eol`, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux e4c539b 028/112: Merge pull request #9 from waymondo/with-region-or-line, ELPA Syncer, 2021/08/11