emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Problem with org-remember


From: Mark Elston
Subject: Re: [Orgmode] Problem with org-remember
Date: Mon, 19 Jan 2009 13:19:36 -0800
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Nick,

I got it working.  As I was looking at my .emacs I noticed that I
had commented out the line:

  (org-remember-insinuate)

Once I uncommented this line it worked as expected.  I see that
this function does largely what yours does.

And, yes, I see the mention of org-install in sec 1.2.
I had a mixture of docs I was working with originally and
missed that line in the new docs...

Mark

* Nick Dokos wrote (on 1/19/2009 1:06 PM):
Mark Elston <address@hidden> wrote:

Nick,

It helps with the first problem, the autoload problem.  I didn't see
this in the manual anywhere.

It's mentioned in the Installation section (sec. 1.2).

However, while it brings up a *Remember* window it doesn't populate
it with any of the templates I have set up (basically I copied what was
in the texinfo doc).  And when I write something in it and hit
C-cC-c I get an error:

  Debugger entered--Lisp error: (error "The mark is not set now, so
there is no region")
  call-interactively(comment-region)

This is not what I expected from the docs.


You probably want to set debug-on-error to t and try it again. You should
get a backtrace that will tell more of the story.

However, you might want to give the following a try: it's a
stripped-down version of my org initialization. Can you try it after
changing the paths?

-------------------------------------------------------------------------------------
;; change the path appropriately.
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/git/org-mode/lisp"))

(require 'org-install)

;;; org mode
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key mode-specific-map [?a] 'org-agenda)

;;; remember
;; change the path appropriately
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/remember")
(require 'remember)
(add-hook 'remember-mode-hook 'org-remember-apply-template)

(setq org-remember-templates
      '(("Todo" ?t "* TODO %?\n  %i\n  %a" "~/org/TODO.org" "Tasks")
        ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/org/JOURNAL.org")
        ("Idea" ?i "* %^{Title}\n  %i\n  %a" "~/org/JOURNAL.org" "New Ideas")))
-------------------------------------------------------------------------------------









reply via email to

[Prev in Thread] Current Thread [Next in Thread]