Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Emacs Lisp file-exists usage
- Date: Mon, 18 Feb 2013 18:33:15 +0900
- From: Charles Muller <acmuller@example.com>
- Subject: [tlug] Emacs Lisp file-exists usage
- Organization: University of Tokyo
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
I use the Emacs mailer MEW, and I'm trying to set up a way for the mailer to use different SMTP settings depending on which machine it's running on. I found an Emacs function called file-exists which is supposed to test for the presence of a file, and then I am putting an empty file in my root directory on the different machines that is intended to trigger the change. What I've written is like this:(if (file-exists-p "/mail-u-tokyo") (setq mew-smtp-port "25") (setq mew-smtp-server "mail.l.u-tokyo.ac.jp") ) (if (file-exists-p "/mail-home") (setq mew-smtp-port "587") (setq mew-smtp-server "mail.so-net.ne.jp") )But it doesn't seem to do the trick. Can anyone spot what is missing here?TIA, Chuck ------------------- A. Charles Muller University of Tokyo Graduate School of Humanities and Sociology, Faculty of Letters Center for Evolving Humanities 7-3-1 Hongō, Bunkyō-ku Tokyo 113-8654, Japan Office: 03-5841-3735 Web Site: Resources for East Asian Language and Thought http://www.acmuller.net <acmuller[at]l.u-tokyo.ac.jp>
- Follow-Ups:
- Re: [tlug] Emacs Lisp file-exists usage
- From: Curt Sampson
- [tlug] Emacs Lisp file-exists usage
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [***rescheduled***] nomikai February 15 -> March 8
- Next by Date: [tlug] Job scheduling suggestions
- Previous by thread: [tlug] [CFP] Call for presenters - Apr 6 Technical Meeting
- Next by thread: Re: [tlug] Emacs Lisp file-exists usage
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links