Page 2 of 3
Re: org-mode
Posted: Tue May 24, 2016 12:07 pm
by wuxmedia
ahh yes -thanks. excuse me!
oh yes, much nicer.
so [[link-location][desc]] smart :)
Re: org-mode
Posted: Tue May 24, 2016 1:35 pm
by wuxmedia
someone needs to explain all this shit:
Code: Select all
wux@dimholt:~$ ls orgy/
##contacts.org##~ contacts.org #company.org# #ticket.org# work.org
#contacts.org# contacts.org~ ##ticket.org## #ticket.org#~ work.org~
do I link the hashhash, or not? I take it tilde is a swap or a temp file?
OK OK. dealt with it. removed all that, still no idea whay it makes those ##files.org##
Re: org-mode
Posted: Tue May 24, 2016 1:53 pm
by slartie
If you've opened #file# and emacs then autosaves that file, I would assume it becomes ##file##
Re: org-mode
Posted: Tue May 24, 2016 2:17 pm
by GekkoP
#file# is autosave, just so you can revert easily if something goes wrong
file~ is a backup copy.
If you want to prevent spamming your directories with backups, you can do something like this:
Code: Select all
(setq backup-directory-alist '((".*" . "~/.emacs.d/backup"))
version-control t ; Version number for backup files
delete-old-versions t)
(setq auto-save-list-file-prefix "~/.emacs.d/autosave/"
auto-save-file-name-transforms '((".*" "~/.emacs.d/autosave/" t)))
Re: org-mode
Posted: Tue May 24, 2016 2:19 pm
by wuxmedia
oh ok - thanks makes sense.
Re: org-mode
Posted: Wed May 25, 2016 5:11 am
by machinebacon
note: if you try to sync/copy a directory with autosaved files (like # or ~ in their name), this won't always work with FUSE (for example ExtFS). It will require you to rename or delete them anyway then. So the idea of Gekko is a good one, simply turn off the tilde or make it use another extension, and don't link to backup or autosave files.
Re: org-mode
Posted: Wed May 25, 2016 7:56 am
by wuxmedia
Thank you, bet you are regretting wuxmacs now...
It's working fairly nicely, the odd things are; to swap buffer from vertical to horzontal, is a bit crazy (I just close, reopen with the window taller than wide)
this:
http://emacs.stackexchange.com/question ... rnal-links
I guess that line goes in emacs.d/somewhere?
Got the thing set up nice, need to do the 'open on that page' by default.
not sure if i need the contacts set by column, looks pretty, but rather too long.
I guess I can make tags instead of column entries, the column didn't export any useful data as HTML (I'd like a web view.)
so
not sure what the difference/benefits would be.
Re: org-mode
Posted: Wed May 25, 2016 2:40 pm
by machinebacon
You want horizontal split by default?
Code: Select all
(setq split-height-threshold 0)
(setq split-width-threshold 0)
in ~/.emacs , save and re-evaluate (using "M-x eval-buffer")
Re: org-mode
Posted: Wed May 25, 2016 2:42 pm
by GekkoP
Something useful (YMMV):
Code: Select all
(setq org-log-done 'time
org-hide-emphasis-markers t
org-refile-targets '((org-agenda-files . (:maxlevel . 6)))
org-agenda-start-on-weekday nil
org-agenda-include-diary t
org-agenda-use-time-grid t
;; Follow links by pressing ENTER on them
org-return-follows-link t)
(setq org-directory (expand-file-name "~/org/")
org-default-notes-file
(expand-file-name "organizer.org" org-directory))
;; Use visual-line-mode
(add-hook 'org-mode-hook #'visual-line-mode)
;; Define TODO workflow states
(setq org-todo-keywords
'("TODO(t)" "WAITING(w)" "INFO(i)"
"|" "CANCELLED(c)" "DONE(x)"))
Re: org-mode
Posted: Wed May 25, 2016 2:47 pm
by machinebacon
About export to HTML, that's something like C-c C-e h h
I am not sure if this is what you mean or actually want. Can you elaborate a bit?
http://orgmode.org/manual/Handling-links.html
Maybe you actually want something like a spreadsheet functionality? That does work:
http://orgmode.org/worg/org-tutorials/o ... intro.html
Sorry for being a bit slow :D
Re: org-mode
Posted: Wed May 25, 2016 2:57 pm
by GekkoP
I use
ox-pandoc for pretty HTML exports, with a
custom CSS:
Code: Select all
(setq org-pandoc-options '((standalone . t)))
;; Use external css for html5
(let ((stylesheet (expand-file-name
(locate-user-emacs-file "etc/pandoc.css"))))
(setq org-pandoc-options-for-html5
`((css . ,(concat "file://" stylesheet)))))
You need latest pandoc for this, I grabbed it from
here.
Re: org-mode
Posted: Thu May 26, 2016 10:03 am
by wuxmedia
Thanks for all the links and things.
so I have a ticket TODO list, with the cust details link to the contacts file, 'file:contacts.org::Name'
There is some, 'no new header, create y/n?' error, I've googled and I think that can be silenced.
both of those buffers (ticket and contacts) are likely open all the time anyway - that all works fine.
Normal html comes out fine, not a prob - it just doesn't contain the customer details just the ** TODO header, it ignores the :PROPERTIES:
Can't really show you -a bit like this :)
all one sees on the html is "1.2 Joe, Debian" thats it, it's probably an export option I missed.
I hate spreadsheets with a passion - so anything like that isn't really what I want. It just that listing type order of tags looked useful when I was searching for a contact list template, everyone else seems to use another thing (ie abook), might as well have it emacs (see, I'm getting into the spirit of the thing!)
just a list of all the details the contacts need to have on them. So I would definitely need a Name:, Adress: type things, so I suppose the tags stay.
Don't worry about slow. I have a long way to go.
Re: org-mode
Posted: Thu May 26, 2016 11:05 am
by GekkoP
Try adding this to your Org file:
Re: org-mode
Posted: Thu May 26, 2016 11:10 am
by franksinistra
if you're willing to install extension :
http://orgmode.org/worg/org-contrib/
Then do M-x org-contacts, and you're all set
Re: org-mode
Posted: Thu May 26, 2016 12:55 pm
by wuxmedia
^ yeah the one that bails:
https://julien.danjou.info/software/org-contacts.el
didn't fancy that one :)
^^ whaddas that do?
c-x c-s is slightly better than :w though..
Re: org-mode
Posted: Thu May 26, 2016 2:32 pm
by GekkoP
Re: org-mode
Posted: Thu May 26, 2016 2:51 pm
by wuxmedia
yeah, ok so - why the 't' at the end of each option?
it still didn't dump the html, it's on both (only) org files.
not really important.
Re: org-mode
Posted: Thu May 26, 2016 3:22 pm
by GekkoP
The 't' is to enable them (as opposed to 'nil' to disable them).
From this file org:
Code: Select all
#+STARTUP: showall
#+OPTIONS: prop:t
** Joe, Debian
:PROPERTIES:
:Company: Company
:Email: [email protected]
:Phone:
:Mobile:
:END:
I get this html file doing "C-c C-e h o":
http://www.boccaperta.com/wuxie.html
I am using Org 8.3.4.
Re: org-mode
Posted: Thu May 26, 2016 7:10 pm
by wuxmedia
^ thanks - that's what I thought it should look like.
I'll have a look once I'm at my desk.
Re: org-mode
Posted: Fri May 27, 2016 7:40 am
by wuxmedia
^ I get the same - just the ** headers.
can't get an ascii file either. weird.
Emacs 24.5.1 (Org mode 8.2.10) it says.
removed the columns and made it like yours:
Code: Select all
#+STARTUP: showall
#+OPTIONS: prop:t
* Contacts
** Last, Name
:PROPERTIES:
:Company: company
[...etc...]
:END:
I give up, doesn't matter