emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Q: placement of initialization for org-time-stamp-formats
@ 2020-07-01  0:19 hj-orgmode-1
  2020-07-03 13:18 ` hj-orgmode-1
  0 siblings, 1 reply; 4+ messages in thread
From: hj-orgmode-1 @ 2020-07-01  0:19 UTC (permalink / raw)
  To: emacs-orgmode


  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)
                        ("w3m" :store org-w3m-store-link)
                        ("orgit-rev" :store orgit-rev-store :follow 
orgit-rev-open :export orgit-rev-export :complete orgit-rev-complete-link)
                        ("orgit-log" :store orgit-log-store :follow 
orgit-log-open :export orgit-log-export :complete orgit-log-complete-link)
                        ("orgit" :store orgit-status-store :follow 
orgit-status-open :export orgit-status-export :complete
                         orgit-status-complete-link)
                        ("file+sys") ("file+emacs") ("shell" :follow 
org-link--open-shell)
                        ("news" :follow #[257 "\301\300\302^CQ!\207" 
["news" browse-url ":"] 5 "\n\n(fn URL)"])
                        ("mailto" :follow #[257 "\301\300\302^CQ!\207" 
["mailto" browse-url ":"] 5 "\n\n(fn URL)"])
                        ("https" :follow #[257 "\301\300\302^CQ!\207" 
["https" browse-url ":"] 5 "\n\n(fn URL)"])
                        ("http" :follow #[257 "\301\300\302^CQ!\207" 
["http" browse-url ":"] 5 "\n\n(fn URL)"])
                        ("ftp" :follow #[257 "\301\300\302^CQ!\207" 
["ftp" browse-url ":"] 5 "\n\n(fn URL)"]) ("help" :follow 
org-link--open-help)
                        ("file" :complete org-link-complete-file) 
("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi))
  org-present-mode-hook '(spacemacs//org-present-start)
  org-link-elisp-confirm-function 'yes-or-no-p
  org-image-actual-width nil
  org-present-mode-quit-hook '(spacemacs//org-present-end)
  org-default-notes-file "notes.org"
  )




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-06 10:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01  0:19 Q: placement of initialization for org-time-stamp-formats hj-orgmode-1
2020-07-03 13:18 ` hj-orgmode-1
2020-07-03 13:51   ` Robert Pluim
2020-07-06 10:35     ` [SOLVED] " hj-orgmode-1

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).