How to display user view in Emacs startup mode?

I have

(add-hook 'after-init-hook 'org-agenda)

in my initialization file. This displays the agenda manager. How can I

  • automatically displays the user view (shortcut "w")
  • Make sure that the view on the agenda is the only window, and in the second window there is no * scratch * buffer?
+4
source share
1 answer

This should work:

(add-hook 'after-init-hook (lambda () (org-agenda nil "w")))

@robust: org-agenda (C-h f org-agenda); , (interactive) lambda , . - , , (ORG-KEYS) - , ("w"). org-agenda lambda, self-quoting.

+5

Source: https://habr.com/ru/post/1539663/


All Articles