diff options
author | Thanos Apollo <[email protected]> | 2023-08-27 09:09:54 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-27 09:09:54 +0300 |
commit | 67d520b28d8bebeb12405138283880ad48aef125 (patch) | |
tree | f9a5e72cf0a727217a505c501f9ae37288c99952 /emacs.org | |
parent | 5383fd14d4b0aa5d693055e8d203220495d27c24 (diff) |
emacs: rewrite org-insert-book
Diffstat (limited to 'emacs.org')
-rwxr-xr-x | emacs.org | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -391,9 +391,8 @@ Generate a random password between 20 and 40 characters (defun org-insert-book () "Insert org-link from ~/Library for book" (interactive) - (let ((book-path (read-file-name "Book: " "~/Library/")) - (book-description (read-string "Title: "))) - (org-insert-link nil book-path book-description))) + (let* ((book-path (read-file-name "Book: " "~/Library/"))) + (org-insert-link nil book-path (file-name-base book-path)))) ;;; Keybindings (define-key org-mode-map (kbd "C-c b") 'org-insert-book) |