Skip to content

Commit df6875c

Browse files
committed
Use default editor ($EDITOR) if it exists, otherwise use emacs
1 parent 960bd52 commit df6875c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ new-note() {
2727
}
2828

2929
edit-note() {
30-
emacs $NOTES_DIR/$1.txt
30+
${EDITOR:-emacs} $NOTES_DIR/$1.txt
3131
}
3232

3333
archive-note() {

0 commit comments

Comments
 (0)