org-mode

Forum rules
Share your brain ;)
User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 12:07 pm

ahh yes -thanks. excuse me!

oh yes, much nicer.

so [[link-location][desc]] smart :)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 1:35 pm

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##
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
slartie
Grump
Posts: 416
Joined: Tue Jun 18, 2013 12:35 pm
Location: Denmark
Contact:

Re: org-mode

Unread post by slartie » Tue May 24, 2016 1:53 pm

If you've opened #file# and emacs then autosaves that file, I would assume it becomes ##file##

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Tue May 24, 2016 2:17 pm

#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)))

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 2:19 pm

oh ok - thanks makes sense.
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: org-mode

Unread post by machinebacon » Wed May 25, 2016 5:11 am

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.
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Wed May 25, 2016 7:56 am

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

Code: Select all

* contacts
** contact, name
phone: 232323
email: [email protected]
etc...
** another, contact
not sure what the difference/benefits would be.
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: org-mode

Unread post by machinebacon » Wed May 25, 2016 2:40 pm

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")
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Wed May 25, 2016 2:42 pm

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)"))

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: org-mode

Unread post by machinebacon » Wed May 25, 2016 2:47 pm

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
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Wed May 25, 2016 2:57 pm

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.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Thu May 26, 2016 10:03 am

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 :)

Code: Select all

** Joe, Debian

:PROPERTIES:
:Company:      Company
:Email:        [email protected]
:Phone:        
:Mobile:
:END:
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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Thu May 26, 2016 11:05 am

Try adding this to your Org file:

Code: Select all

#+OPTIONS: tags:t prop:t d:t

User avatar
franksinistra
Ivana Fukalot
Posts: 1093
Joined: Mon Jan 27, 2014 2:03 am
Location: 印尼国

Re: org-mode

Unread post by franksinistra » Thu May 26, 2016 11:10 am

if you're willing to install extension : http://orgmode.org/worg/org-contrib/

Then do M-x org-contacts, and you're all set
rice no more.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Thu May 26, 2016 12:55 pm

^ 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..
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Thu May 26, 2016 2:32 pm


User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Thu May 26, 2016 2:51 pm

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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Thu May 26, 2016 3:22 pm

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.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Thu May 26, 2016 7:10 pm

^ thanks - that's what I thought it should look like.
I'll have a look once I'm at my desk.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Fri May 27, 2016 7:40 am

^ 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
"Seek, and Ye shall find"
"Github | Chooons | Site"

Post Reply