2
내 말은 :Emacs에서 Agenda 버퍼의 상태를 저장하는 방법은 무엇입니까?
우리 자신의 명령은 org-agenda-custom-commands
변수로 설정되어 있습니다.
그러나 현재 버퍼의 상태를 만드는 데 사용 된 명령은 어떻게 검색 할 수 있습니까?
나는 두 기능
내 말은 :Emacs에서 Agenda 버퍼의 상태를 저장하는 방법은 무엇입니까?
우리 자신의 명령은 org-agenda-custom-commands
변수로 설정되어 있습니다.
그러나 현재 버퍼의 상태를 만드는 데 사용 된 명령은 어떻게 검색 할 수 있습니까?
나는 두 기능
(defun wg-get-org-agenda-view-commands()
"Get commands by which the current state of Agenda buffer can
be restored using \"(eval commands)\"."
(interactive)
(if (get-buffer org-agenda-buffer-name)
(with-current-buffer org-agenda-buffer-name
(let* ((p (or (and (looking-at "\\'") (1- (point))) (point)))
(series-redo-cmd (get-text-property p 'org-series-redo-cmd)))
(if series-redo-cmd
(get-text-property p 'org-series-redo-cmd)
(get-text-property p 'org-redo-cmd))))))
(defun wg-run-agenda-cmd (f)
"Run commands \"f\" in Agenda buffer. You can get these
commands using \"wg-get-org-agenda-view-commands\"."
(if (get-buffer org-agenda-buffer-name)
(save-window-excursion
(with-current-buffer org-agenda-buffer-name
(let* ((line (org-current-line)))
(if f (eval f))
(org-goto-line line))))))
그냥 읽어 문서화 문자열을 저장하고 현재 .emacs
구성에 나중에 의존하지 않고 다시하고 싶다.
org-mode 메일 링리스트에게 감사드립니다. 그들은 나에게 힌트를 주었다.
이제는 "작업 그룹"확장자 인 workgroups2을 계속 사용하여 org-agenda 버퍼를 저장하고 복원 할 수 있습니다.