Re: [SOLVED] Q: placement of initialization for org-time-stamp-formats
On 7/3/20 3:51 PM, Robert Pluim wrote: On Fri, 3 Jul 2020 15:18:40 +0200, hj-orgmod...@hj.proberto.com said: hj-orgmode-1> Hello again. hj-orgmode-1> After a lot of searching and trying, I finally figured one thing that hj-orgmode-1> seems to work: ( I am no lisp programmer, so I don't know what hj-orgmode-1> negative side effects might this have) ; I've added into hj-orgmode-1> dotspacemacs/user-config section inside .spacemacs : hj-orgmode-1> (add-hook 'org-load-hook hj-orgmode-1> (lambda () hj-orgmode-1> (setq org-time-stamp-formats '("<%Y-%m-%d %a>" hj-orgmode-1> . "<%Y-%m-%d %a %H:%M:%S %Z>")) )) hj-orgmode-1> Does that look like this should have no undesirable side effects? Thatʼs normally written (with-eval-after-load "org" (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a%H:%M:%S %Z>"))) Robert Thank you!! Your suggestion is working very well!! H.J.
Re: Q: placement of initialization for org-time-stamp-formats
> On Fri, 3 Jul 2020 15:18:40 +0200, hj-orgmod...@hj.proberto.com said: hj-orgmode-1> Hello again. hj-orgmode-1> After a lot of searching and trying, I finally figured one thing that hj-orgmode-1> seems to work: ( I am no lisp programmer, so I don't know what hj-orgmode-1> negative side effects might this have) ; I've added into hj-orgmode-1> dotspacemacs/user-config section inside .spacemacs : hj-orgmode-1> (add-hook 'org-load-hook hj-orgmode-1> (lambda () hj-orgmode-1> (setq org-time-stamp-formats '("<%Y-%m-%d %a>" hj-orgmode-1> . "<%Y-%m-%d %a %H:%M:%S %Z>")) )) hj-orgmode-1> Does that look like this should have no undesirable side effects? Thatʼs normally written (with-eval-after-load "org" (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a%H:%M:%S %Z>"))) Robert
Re: Q: placement of initialization for org-time-stamp-formats
Hello again. After a lot of searching and trying, I finally figured one thing that seems to work: ( I am no lisp programmer, so I don't know what negative side effects might this have) ; I've added into dotspacemacs/user-config section inside .spacemacs : (add-hook 'org-load-hook (lambda () (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>")) )) Does that look like this should have no undesirable side effects? Thanks! H.J. On 7/1/20 2:19 AM, hj-orgmod...@hj.proberto.com wrote: Hi, 1. Org-Mode rocks!! 2. I need to have, besides hours and minutes, also seconds and time zone in timestamps. I also need to be able to edit the timestamps down to seconds. If I set ( inside .spacemacs in (custom-set-variables) ) : '(org-display-custom-times t) '(org-time-stamp-custom-formats (quote ("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>"))) then I get non-editable timestamps. But if I don't set these, and I only manually set org-time-stamp-formats after I open an org-mode file, I get exactly what I need => editable timestamps with seconds and timezone Question: Into which initialization file (and which location in that file) do I place the assignment for org-time-stamp-formats so I don't have to manually set the following every time after emacs startup? (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>")) Thanks! H.J. 3. Environment : recent (less than 2 months old) installation of spacemacs Emacs : GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 2019-05-11 Package: Org mode version 9.3.6 (9.3.6-75-gb614ed-elpaplus @ /home/user/.emacs.d/elpa/org-plus-contrib-20200525/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-time-stamp-custom-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>") org-log-note-clock-out t org-imenu-depth 8 org-agenda-files '("~/git/jtodo/notes.org" "~/git/jtodo/jtodo.org" "~/git/tyra165/todo.org" "~/git/jtodo/skola.org") org-mode-hook '(#[0 "\301\211^P\207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes toc-org-enable org-download-enable org-bullets-mode spacemacs//org-babel-do-load-languages spacemacs/add-org-surrounds evil-org-mode org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-agenda-restore-windows-after-quit t org-confirm-elisp-link-function 'yes-or-no-p org-startup-with-inline-images t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300^A\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-log-done 'time org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql)) org-catch-invisible-edits 'error org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO(t!)" "NEXT(n!)" "DOINGNOW(d!)" "BLOCKED(b@)" "TODELEGATE(g@)" "DELEGATED(D!)" "FOLLOWUP(f!)" "TICKLE(T!)" "|" "CANCELLED(c@)" "DONE(F@)") ) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-clock-persist-file "/home/user/.emacs.d/.cache/org-clock-save.el" org-id-locations-file "/home/user/.emacs.d/.cache/.org-id-locations" org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export
Q: placement of initialization for org-time-stamp-formats
Hi, 1. Org-Mode rocks!! 2. I need to have, besides hours and minutes, also seconds and time zone in timestamps. I also need to be able to edit the timestamps down to seconds. If I set ( inside .spacemacs in (custom-set-variables) ) : '(org-display-custom-times t) '(org-time-stamp-custom-formats (quote ("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>"))) then I get non-editable timestamps. But if I don't set these, and I only manually set org-time-stamp-formats after I open an org-mode file, I get exactly what I need => editable timestamps with seconds and timezone Question: Into which initialization file (and which location in that file) do I place the assignment for org-time-stamp-formats so I don't have to manually set the following every time after emacs startup? (setq org-time-stamp-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>")) Thanks! H.J. 3. Environment : recent (less than 2 months old) installation of spacemacs Emacs : GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 2019-05-11 Package: Org mode version 9.3.6 (9.3.6-75-gb614ed-elpaplus @ /home/user/.emacs.d/elpa/org-plus-contrib-20200525/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-time-stamp-custom-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M:%S %Z>") org-log-note-clock-out t org-imenu-depth 8 org-agenda-files '("~/git/jtodo/notes.org" "~/git/jtodo/jtodo.org" "~/git/tyra165/todo.org" "~/git/jtodo/skola.org") org-mode-hook '(#[0 "\301\211^P\207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes toc-org-enable org-download-enable org-bullets-mode spacemacs//org-babel-do-load-languages spacemacs/add-org-surrounds evil-org-mode org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-agenda-restore-windows-after-quit t org-confirm-elisp-link-function 'yes-or-no-p org-startup-with-inline-images t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300^A\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-log-done 'time org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql)) org-catch-invisible-edits 'error org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO(t!)" "NEXT(n!)" "DOINGNOW(d!)" "BLOCKED(b@)" "TODELEGATE(g@)" "DELEGATED(D!)" "FOLLOWUP(f!)" "TICKLE(T!)" "|" "CANCELLED(c@)" "DONE(F@)") ) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-clock-persist-file "/home/user/.emacs.d/.cache/org-clock-save.el" org-id-locations-file "/home/user/.emacs.d/.cache/.org-id-locations" org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link)