[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux 5395c06 076/112: New function: crux-find-user-custom-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux 5395c06 076/112: New function: crux-find-user-custom-file |
Date: |
Wed, 11 Aug 2021 09:57:57 -0400 (EDT) |
branch: elpa/crux
commit 5395c069295761d4f0d3d2a87da3ca97c019cc68
Author: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
New function: crux-find-user-custom-file
I separate my customizations into a separate file so it can be modified by
customize independently instead of clobbering my init file. This makes
visiting
the file easier.
---
README.md | 1 +
crux.el | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/README.md b/README.md
index bdb4bd7..8d5b373 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,7 @@ Command |
Suggested Keybinding(s)
`crux-indent-defun` | <kbd>C-M z</kbd> |
Indent the definition at point.
`crux-indent-rigidly-and-copy-to-clipboard` | <kbd>C-c TAB</kbd> |
Indent and copy region to clipboard
`crux-find-user-init-file` | <kbd>C-c I</kbd> | Open
user's init file.
+`crux-find-user-custom-file` | <kbd>C-c ,</kbd> | Open
user's custom file.
`crux-find-shell-init-file` | <kbd>C-c S</kbd> | Open
shell's init file.
`crux-top-join-line` | <kbd>Super-j</kbd> or
<kbd>C-^</kbd> | Join lines
`crux-kill-whole-line` | <kbd>Super-k</kbd> |
Kill whole line
diff --git a/crux.el b/crux.el
index deeabea..1886e30 100644
--- a/crux.el
+++ b/crux.el
@@ -566,6 +566,14 @@ Doesn't mess with special buffers."
(find-file-other-window user-init-file))
;;;###autoload
+(defun crux-find-user-custom-file ()
+ "Edit the `custom-file', in another window."
+ (interactive)
+ (if custom-file
+ (find-file-other-window custom-file)
+ (message "No custom file found.")))
+
+;;;###autoload
(defun crux-find-shell-init-file ()
"Edit the shell init file in another window."
(interactive)
- [nongnu] elpa/crux 23ffa81 092/112: Touch up the previous commit, (continued)
- [nongnu] elpa/crux 23ffa81 092/112: Touch up the previous commit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 519629b 094/112: Update the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 273390e 101/112: Read file name insead of raw string, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux a471cbe 102/112: Add crux-recentf-find-directory, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6bfd212 112/112: Update my e-mail, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux ba4b05c 021/112: Support tcsh, fish and ksh for crux-find-shell-init-file, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 785dfba 095/112: crux-smart-open-line-above: Use crux-move-to-mode-line-start, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c3b6138 107/112: Fixed extra line issue when duplicating, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6c02dab 071/112: Fold a few long lists, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 9341c6b 072/112: Silence byte compiler, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 5395c06 076/112: New function: crux-find-user-custom-file,
ELPA Syncer <=
- [nongnu] elpa/crux 7569d26 085/112: Bump the copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 139eb6f 096/112: Add crux-kill-buffer-truename, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux fb648f0 099/112: Add missing autoload, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 95f5040 106/112: Update crux-transpose-window with other-window, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3445e7e 109/112: Release 0.4.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 20c0784 104/112: Add support for org-mode links to crux-view-url, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 4ce9c4b 070/112: Fix a couple of docstrings, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6958cb5 108/112: Update the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux e561eb4 111/112: Update the sponsorship methods, ELPA Syncer, 2021/08/11