I have the following line in my init.el
:
(define-key
org-mode-map
(kbd "C-c C-p")
(lambda () (interactive) (org-publish-project "publish-website"))
)
The "publish-website"
argument points to an element of my org-publish-project-alist
. This works as expected, except that it moves my point to the start of the buffer when I execute it (which is very annoying). I have two questions (thanks in advance for your help):
- What am I doing wrong here?
- How do I fix it?