[Top][All Lists]

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

table-recognize and default-major-mode

From: Roland Winkler
Subject: table-recognize and default-major-mode
Date: Thu, 28 Jul 2005 22:44:43 +0200


I have in my .emacs

(setq default-major-mode 'text-mode)
(require 'table)
(add-hook 'text-mode-hook 'table-recognize)

My problem is that table-recognize is not evaluated when a file is
visited whose mode is text-mode only because of the value of
default-major-mode (e.g., a file named `foo'). When I put
;; -*- mode: text; -*- in the first line of the file, tables are
recognized as expected. (I can always run table-recognize by hand.
But why is it not run when it is part of text-mode-hook?)


In GNU Emacs (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-06-04 on tfkp07
configured using `configure '--prefix=/nfs/tfkp07/winkler/emacs/NEW' 
'--with-gcc' '--with-pop' '--with-x' '--with-x-toolkit=athena' 
'--x-libraries=/usr/X11R6/lib' '--x-includes=/usr/X11R6/include''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: nil

Major mode: Emacs-Lisp

Minor modes in effect:
  auto-compression-mode: t
  display-time-mode: t
  encoded-kbd-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  line-number-mode: 1
  transient-mark-mode: t
  next-error-follow-minor-mode:  Fol
  abbrev-mode: t

reply via email to

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