emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: bostjanv@alum.mit.edu
To: emacs-orgmode@gnu.org
Subject: "read only buffer" message in orgmode
Date: Wed, 23 Jul 2008 06:30:17 -0400 (EDT)	[thread overview]
Message-ID: <19747214.1541216809017295.JavaMail.gbourne@brunch.mit.edu> (raw)

[-- 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

             reply	other threads:[~2008-07-23 10:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 10:30 bostjanv [this message]
2008-07-24 18:00 ` "read only buffer" message in orgmode Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19747214.1541216809017295.JavaMail.gbourne@brunch.mit.edu \
    --to=bostjanv@alum.mit.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).