0

I'm trying to enable agenda-view and use agenda features under org-mode.
As per the org-mode manual - Agenda section pressing the key sequence Ctrl + c + a followed by a to create calendar like agenda.

I tried this and it did not work. Then I saw the link for Activation to activate agenda view and also updated the .emacs file as shown below

;; This is for org-mode agenda view activation
 '(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
 ;; This is for key bindings to invoke agenda mode (see line-2)
 '(global-set-key "\C-cl" 'org-store-link)
 '(global-set-key "\C-ca" 'org-agenda)
 '(global-set-key "\C-cc" 'org-capture)
 '(global-set-key "\C-cb" 'org-iswitchb)

I restarted emacs twice. But nothing seems to work. I was following this YouTube video in order to see if I can make use of agenda feature in org-mode

7

You are quoting those lists, so they won't actually do anything.

Try removing the leading "'"s like so:

;; This is for org-mode agenda view activation
 (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
 ;; This is for key bindings to invoke agenda mode (see line-2)
 (global-set-key "\C-cl" 'org-store-link)
 (global-set-key "\C-ca" 'org-agenda)
 (global-set-key "\C-cc" 'org-capture)
 (global-set-key "\C-cb" 'org-iswitchb)

In ELISP, when a list is quoted like this, nothing inside of it gets evaluated. This is handy when you want to pass around literal lists, but serves your purpose poorly in this case.

  • Is there a manual for this elisp within emacs like emacs manual? – Prasanna May 8 '16 at 4:30
  • 2
    Yep! You can get to it from C-h i. From there, there is both a language manual, and an introduction to the language. You can also play around with it in a REPL using M-x ielm. – Archenoth May 8 '16 at 5:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.