brain initiation
This commit is contained in:
33
20230522132213-org_attach.org
Normal file
33
20230522132213-org_attach.org
Normal file
@@ -0,0 +1,33 @@
|
||||
:PROPERTIES:
|
||||
:ID: b02ca084-7831-4013-8389-45f4cd969e25
|
||||
:END:
|
||||
#+title: org-attach
|
||||
#+filetags: :ORG:EMACS:
|
||||
|
||||
File Storing System based on org headers. For browsing,[[id:9ce51551-fcb1-446a-9924-9dd26f5d56aa][helm-org-rifle]]
|
||||
|
||||
Default Keybinding:
|
||||
|
||||
~C-c C-a~
|
||||
|
||||
(the view may be shifted, scroll up with ~M-v~)
|
||||
|
||||
|
||||
|
||||
Code to try (not yet integrated):
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-attach-directory "~/.emacs.d/data")
|
||||
(setq org-attach-method (quote mv))
|
||||
|
||||
(defun yourname/create_temp_dir ()
|
||||
(setq uuid (org-id-copy))
|
||||
(setq dir_temp (org-attach-id-uuid-folder-format uuid))
|
||||
(setq dir_temp2 (concat org-attach-directory "/" dir_temp "/"))
|
||||
(setq dir_temp_usage (concat org-attach-directory "/" "TEMP/"))
|
||||
(org-set-property "DIR" dir_temp_usage)
|
||||
(copy-directory dir_temp2 dir_temp_usage t t t))
|
||||
|
||||
(global-set-key (kbd "<f12>") (lambda () (interactive) (yourname/create_temp_dir)))
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user