3
這個問題可能很簡單,但我很掙扎,因爲我是ELISP的新手。用鍵綁定給定子樹
我想要一個鍵綁定來將當前子樹重新設置爲子樹TRASH。
雖然我已經編寫了代碼,但不起作用。你能幫我解決嗎? 在此先感謝!
代碼:
(defun org-move-to-trash()
(org-refile "TRASH") ;; the function fails here because the parameter has to be specified in a different way. But how?
)
(global-set-key (kbd "C-c b") 'org-move-to-trash)
哇!知道一件非常有用的事情。這可以解決我與emacs有很多其他問題:)感謝分享! – andrei
很高興你發現我的答案有幫助。如果它解決了您的問題,請點擊複選標記將其標記爲已接受的答案。並upvote它! :) –