[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] "read only buffer" message in orgmode
From: |
bostjanv |
Subject: |
[Orgmode] "read only buffer" message in orgmode |
Date: |
Wed, 23 Jul 2008 06:30:17 -0400 (EDT) |
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)
- [Orgmode] "read only buffer" message in orgmode,
bostjanv <=