home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3432 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.6 KB  |  30 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!cherokee!lookout.it.uswc.uswest.com!rray
  3. From: rray@lookout.it.uswc.uswest.com (Randy J. Ray)
  4. Subject: More intelligent default mode selection?
  5. Message-ID: <1992Jul21.182834.15608@advtech.uswest.com>
  6. Sender: rray@snakepit (Randy J. Ray)
  7. Nntp-Posting-Host: snakepit.it.uswc.uswest.com
  8. Organization: US WEST Communications, Inc. -- Denver, CO
  9. Date: Tue, 21 Jul 1992 18:28:34 GMT
  10. Lines: 18
  11.  
  12. I spend most of my time editing Perl code. Unless I am writing a library, my
  13. files do not have a suffix, since they are destined to be executable scripts.
  14. My default editing mode is Text, over-ridden by the value of auto-mode-alist.
  15. I would like to be able to have an alternate default mode, say, on a per-
  16. directory basis. I would even agree to a file such as ".default_mode" or some
  17. such. Is there some way I can patch in before the find-file routine actually
  18. reads the file and creates the buffer? Or should I write a wrapper function to
  19. appear to behave like find-file, but determines the directory of the requested
  20. file, reads the mode, passes the name to find-file, then switches to that mode?
  21. I can do that, but I am hoping for a cleaner solution.
  22.  
  23. Randy
  24. -- 
  25. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. Randy J. Ray -- U S WEST IT/CSD         rray@{lookout,uswat}.it.uswc.uswest.com
  27. I'd rather talk religion with Charles Manson than discuss ethics with Congress.
  28.      -me                                                   Phone: (303)595-2852
  29. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30.