* "read only buffer" message in orgmode
@ 2008-07-23 10:30 bostjanv
2008-07-24 18:00 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: bostjanv @ 2008-07-23 10:30 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2846 bytes --]
Hello,
I'm running emacs 22.2 with orgmode v. 4.67 on Windows XP, and I'm just starting to use orgmode. However, I seem to cannot go beyond a (probably) trivial problem:
Whenever I type "C-c a a", I get the message "Buffer is read-only: #<buffer .emacs.d>". This does not depend on the directory in which the org files reside (I tried different directories; the only change is in the buffer name). Any advice would be appreciated.
Regards,
bostjanv
PS following is my init file (the orgmode relevant items are in the last 21 lines):
(setq next-line-add-newlines nil)
(or (assoc "\\.ob2$" auto-mode-alist)
(setq auto-mode-alist (cons '("\\.ob2$" . modula-2-mode)
auto-mode-alist)))
(or (assoc "\\.mod$" auto-mode-alist)
(setq auto-mode-alist (cons '("\\.mod$" . modula-2-mode)
auto-mode-alist)))
(or (assoc "\\.def$" auto-mode-alist)
(setq auto-mode-alist (cons '("\\.def$" . modula-2-mode)
auto-mode-alist)))
(or (assoc "\\.odf$" auto-mode-alist)
(setq auto-mode-alist (cons '("\\.odf$" . modula-2-mode)
auto-mode-alist)))
(defun m2-mode-fontify-hook () "set Modula2 font lock and fontify buffer"
(interactive)
(font-lock-mode)
(font-lock-fontify-buffer)
(define-key m2-mode-map [delete] 'delete-char)
(define-key m2-mode-map [return] 'newline-and-indent))
(add-hook 'm2-mode-hook 'm2-mode-fontify-hook)
(global-set-key "\C-l" 'goto-line)
(setq tex-open-quote "\"")
(setq tex-close-quote "\"")
;; change in v. 21.3
(server-start)
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
;; disable version control
(setq vc-handled-backends nil)
;; there was a problem in the preloaded mouse.el in v. 22.1
;; fix disabled since 22.2
;(load-file "C:/Program Files/Emacs/emacs-22.1/lisp/mouse.elc")
;; use to set font specific to machine
(if (file-readable-p "~/.emacs.d/local-script.el")
(load "~/.emacs.d/local-script.el" nil t)
)
;; added 21 Jul 2008: org mode
;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
;; added 21 Jul 2008: org mode
(global-font-lock-mode 1) ; for all buffers
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(calendar-time-display-form (quote (24-hours ":" minutes (if time-zone " (") time-zone (if time-zone ")"))))
'(diary-file "~/.emacs.d/diary")
'(org-agenda-files (quote ("~/.emacs.d/notes.org" "")))
'(org-agenda-restore-windows-after-quit t)
'(org-agenda-window-setup (quote other-frame)))
(setq org-agenda-include-diary t)
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "read only buffer" message in orgmode
2008-07-23 10:30 "read only buffer" message in orgmode bostjanv
@ 2008-07-24 18:00 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-07-24 18:00 UTC (permalink / raw
To: bostjanv; +Cc: emacs-orgmode
On Jul 23, 2008, at 3:30 AM, bostjanv@alum.mit.edu wrote:
> Hello,
> I'm running emacs 22.2 with orgmode v. 4.67 on Windows XP, and I'm
> just starting to use orgmode. However, I seem to cannot go beyond a
> (probably) trivial problem:
[...]
> (custom-set-variables
> ;; custom-set-variables was added by Custom.
> ;; If you edit it by hand, you could mess it up, so be careful.
> ;; Your init file should contain only one such instance.
> ;; If there is more than one, they won't work right.
> '(calendar-time-display-form (quote (24-hours ":" minutes (if time-
> zone " (") time-zone (if time-zone ")"))))
> '(diary-file "~/.emacs.d/diary")
> '(org-agenda-files (quote ("~/.emacs.d/notes.org" "")))
^^^
Most likely this is caused by the empty string in this customization.
Probably you did press the INS butten in the customize interface once
too often.
Just remove it and you should be fine.
HTH
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-24 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 10:30 "read only buffer" message in orgmode bostjanv
2008-07-24 18:00 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.