From mboxrd@z Thu Jan 1 00:00:00 1970 From: elwood151@web.de Subject: How to load .el file during startup and execute its commands (Win7/org8) Date: Tue, 21 Jan 2014 13:54:07 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5aqP-0002ii-3O for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 07:54:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5aqH-0006FM-Ch for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 07:54:17 -0500 Received: from mout.web.de ([212.227.15.3]:55530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5aqH-0006FG-2r for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 07:54:09 -0500 Received: from 3capp-webde-bs11.server.lan ([172.19.170.11]) by mriweb.server.lan (mriweb002) with ESMTP (Nemesis) id 0LpSaB-1VRJsY42B3-00fDNK for ; Tue, 21 Jan 2014 13:54:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs orgmode-mailinglist
I'm trying to use a custom setup for `org-mode 8.2` on `Windows 7`, but it does not work as expected.
My ´Emacs`version: GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
What I tried:
 
## ~/.emacs
in the file `~/.emacs` I have (among others) those lines:
    (if (boundp 'org-mode-user-lisp-path)
        (add-to-list 'load-path org-mode-user-lisp-path)
      (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/lisp")))
    
    (setq default-directory "C:/Users/mypath/" )
    (if (boundp 'org-mode-user-contrib-lisp-path)
        (add-to-list 'load-path org-mode-user-contrib-lisp-path)
      (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/contrib/lisp/"))
      (add-to-list 'load-path (expand-file-name "~/org-mode/morelisp/")))
    
    (require 'icicles)
    (require 'dired+)
    (require 'org)
    (require 'bookmark+)
    
    (load "org")
and later
    (load "C:/Users/mypath/org-config/myname_orgmodeconfig.el")
 
## C:/Users/mypath/org-config/myname_orgmodeconfig.el
contains

    (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
    
    ;; Standard key bindings
    (global-set-key "\C-cl" 'org-store-link)
    (global-set-key "\C-ca" 'org-agenda)
    
    (if (boundp 'org-user-agenda-files)
        (setq org-agenda-files org-user-agenda-files)
      (setq org-agenda-files (quote ("~/org"
                                 ))))
So I try to use all org-files in the path `~/org` as agenda files.
When I launch `emacs`, I get the following result in the `*Messages` buffer:
    Turning OFF Icicle mode...done
    Turning ON Icicle mode...done
    Turning OFF Icicle mode...done
    Turning ON Icicle mode...done
    Turning ON Icicle mode...done
    Turning OFF Icicle mode...done
    Loading c:/Users/mypath/org-mode/org_current/lisp/org.el (source)...done
    Loading c:/Users/mypath/org-config/myname_orgmodeconfig.el (source)...done
    Loading paren...done
    For information about GNU Emacs and the GNU system, type C-h C-a.

# The Problem
So I assume, as the file `myname_orgmodeconfig.el` has been loaded, all the elisp code inside should have been executed and it should have also set my agenda files.
 
**However, the list of agenda files is empty after startup.
When I then _manually_ ofen the file `myname_orgmodeconfig.el` and execute the command `eval-buffer`, everything is fine.**
 
How can I fix that?
 
Kind regards
 
Martin
 
From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Beck Subject: Re: How to load .el file during startup and execute its commands (Win7/org8) Date: Mon, 10 Feb 2014 09:28:31 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCnAn-0000en-3D for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 04:29:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCnAf-0003gA-QS for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 04:29:05 -0500 Received: from plane.gmane.org ([80.91.229.3]:55774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCnAf-0003g6-Jt for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 04:28:57 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WCnAd-00013j-RK for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 10:28:55 +0100 Received: from mail.polytec.de ([213.144.13.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Feb 2014 10:28:55 +0100 Received: from elwood151 by mail.polytec.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Feb 2014 10:28:55 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org web.de> writes: > I'm trying to use a custom setup for `org-mode 8.2` on `Windows 7`, but it >does not work as expected. Sorry for pushing that, but is very annoying to have to load the file manually at each startup. Could anyone tell me if I'm doing something wrong here? My ´Emacs`version: GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN What I tried:   ## ~/.emacs in the file `~/.emacs` I have (among others) those lines:     (if (boundp 'org-mode-user-lisp-path)         (add-to-list 'load-path org-mode-user-lisp-path)       (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/lisp")))          (setq default-directory "C:/Users/mypath/" )     (if (boundp 'org-mode-user-contrib-lisp-path)         (add-to-list 'load-path org-mode-user-contrib-lisp-path)       (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/contrib/lisp/"))       (add-to-list 'load-path (expand-file-name "~/org-mode/morelisp/")))          (require 'icicles)     (require 'dired+)     (require 'org)     (require 'bookmark+)          (load "org") and later     (load "C:/Users/mypath/org-config/myname_orgmodeconfig.el")   ## C:/Users/mypath/org-config/myname_orgmodeconfig.el contains     (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))          ;; Standard key bindings     (global-set-key "\C-cl" 'org-store-link)     (global-set-key "\C-ca" 'org-agenda)          (if (boundp 'org-user-agenda-files)         (setq org-agenda-files org-user-agenda-files)       (setq org-agenda-files (quote ("~/org"                                  )))) So I try to use all org-files in the path `~/org` as agenda files. When I launch `emacs`, I get the following result in the `*Messages` buffer:     Turning OFF Icicle mode...done     Turning ON Icicle mode...done     Turning OFF Icicle mode...done     Turning ON Icicle mode...done     Turning ON Icicle mode...done     Turning OFF Icicle mode...done     Loading c:/Users/mypath/org-mode/org_current/lisp/org.el (source)...done     Loading c:/Users/mypath/org-config/myname_orgmodeconfig.el (source)...done     Loading paren...done     For information about GNU Emacs and the GNU system, type C-h C-a. # The Problem So I assume, as the file `myname_orgmodeconfig.el` has been loaded, all the elisp code inside should have been executed and it should have also set my agenda files.   **However, the list of agenda files is empty after startup. When I then _manually_ ofen the file `myname_orgmodeconfig.el` and execute the command `eval-buffer`, everything is fine.** How can I fix that? Kind regards Martin From mboxrd@z Thu Jan 1 00:00:00 1970 From: M Subject: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Wed, 12 Mar 2014 10:55:56 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNftg-00030q-R0 for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 05:56:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNftI-00017N-FU for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 05:56:24 -0400 Received: from mout.web.de ([212.227.15.4]:55400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNftI-00016v-64 for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 05:56:00 -0400 Received: from [192.168.2.13] ([91.45.153.251]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0Lk8ko-1WzkWt42NG-00c5tE for ; Wed, 12 Mar 2014 10:55:58 +0100 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs orgmode-mailinglist Sorry for asking again, but this issue is still a big problem for me, as I have to load my settings file manually (open, eval-buffer, close) at each startup... =20 I'm trying to use a custom setup for `org-mode 8.2` on `Windows 7`, but it does not work as expected. Sorry for pushing that, but is very annoying to have to load the file manually at each startup. Could anyone tell me if I'm doing something wrong here? =20 My =B4Emacs`version: GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN =20 What I tried: =A0 =20 ## ~/.emacs in the file `~/.emacs` I have (among others) those lines: =20 =A0=A0=A0 (if (boundp 'org-mode-user-lisp-path) =A0=A0=A0=A0=A0=A0=A0 (add-to-list 'load-path org-mode-user-lisp-path) =A0=A0=A0=A0=A0 (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/lisp"))) =A0=A0 =A0 =A0=A0=A0 (setq default-directory "C:/Users/mypath/" ) =A0=A0=A0 (if (boundp 'org-mode-user-contrib-lisp-path) =A0=A0=A0=A0=A0=A0=A0 (add-to-list 'load-path org-mode-user-contrib-lisp-path) =A0=A0=A0=A0=A0 (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/contrib/lisp/")) =A0=A0=A0=A0=A0 (add-to-list 'load-path (expand-file-name "~/org-mode/morelisp/"))) =A0=A0 =A0 =A0=A0=A0 (require 'icicles) =A0=A0=A0 (require 'dired+) =A0=A0=A0 (require 'org) =A0=A0=A0 (require 'bookmark+) =A0=A0 =A0 =A0=A0=A0 (load "org") =20 and later =20 =A0=A0=A0 (load "C:/Users/mypath/org-config/myname_orgmodeconfig.el") =20 =A0 =20 ## C:/Users/mypath/org-config/myname_orgmodeconfig.el =20 contains =20 =20 =20 =A0=A0=A0 (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) =A0=A0 =A0 =A0=A0=A0 ;; Standard key bindings =A0=A0=A0 (global-set-key "\C-cl" 'org-store-link) =A0=A0=A0 (global-set-key "\C-ca" 'org-agenda) =A0=A0 =A0 =A0=A0=A0 (if (boundp 'org-user-agenda-files) =A0=A0=A0=A0=A0=A0=A0 (setq org-agenda-files org-user-agenda-files) =A0=A0=A0=A0=A0 (setq org-agenda-files (quote ("~/org" =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 )))) =20 So I try to use all org-files in the path `~/org` as agenda files. =20 When I launch `emacs`, I get the following result in the `*Messages` buffer: =20 =A0=A0=A0 Turning OFF Icicle mode...done =A0=A0=A0 Turning ON Icicle mode...done =A0=A0=A0 Turning OFF Icicle mode...done =A0=A0=A0 Turning ON Icicle mode...done =A0=A0=A0 Turning ON Icicle mode...done =A0=A0=A0 Turning OFF Icicle mode...done =A0=A0=A0 Loading c:/Users/mypath/org-mode/org_current/lisp/org.el (source)...done =A0=A0=A0 Loading c:/Users/mypath/org-config/myname_orgmodeconfig.el (source)...done =A0=A0=A0 Loading paren...done =A0=A0=A0 For information about GNU Emacs and the GNU system, type C-h C-a. =20 =20 =20 # The Problem =20 So I assume, as the file `myname_orgmodeconfig.el` has been loaded, all the elisp code inside should have been executed and it should have also set my agenda files. =20 =A0 =20 **However, the list of agenda files is empty after startup. When I then _manually_ ofen the file `myname_orgmodeconfig.el` and execute the command `eval-buffer`, everything is fine.** =20 How can I fix that? =20 Kind regards Martin From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Wed, 12 Mar 2014 16:17:06 +0100 Message-ID: <87mwgvxx8t.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkuX-0006KJ-5I for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:17:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNkuR-0002Kl-6x for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:17:37 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:57861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkuR-0002Ke-1o for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:17:31 -0400 In-Reply-To: (M.'s message of "Wed, 12 Mar 2014 10:55:56 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: M Cc: emacs orgmode-mailinglist M writes: > (load "org") Replace this with (require 'org) And make sure (1) you have been running ~$ make (or ~$ make autoloads) in your Org directory. If this does not work, please use M-x org-version RET and report the exact version number. Thanks, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Wed, 12 Mar 2014 10:29:22 -0500 Message-ID: References: <87mwgvxx8t.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0111de624b423404f46a80f4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNl5w-0004to-Ue for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNl5v-0006fw-S8 for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:29:24 -0400 In-Reply-To: <87mwgvxx8t.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: M , emacs-orgmode --089e0111de624b423404f46a80f4 Content-Type: text/plain; charset=UTF-8 On Mar 12, 2014 10:17 AM, "Bastien" wrote: > > M writes: > > > (load "org") > > Replace this with (require 'org) > > And make sure (1) you have been running ~$ make (or ~$ make autoloads) > in your Org directory. > I thought requiring org wasn't required anymore? John > If this does not work, please use M-x org-version RET and report the > exact version number. > > Thanks, > > -- > Bastien > --089e0111de624b423404f46a80f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mar 12, 2014 10:17 AM, "Bastien" <bzg@gnu.org> wrote:
>
> M <Elwood151@web.de> wri= tes:
>
> > =C2=A0(load "org")
>
> Replace this with (require 'org)
>
> And make sure (1) you have been running ~$ make (or ~$ make autoloads)=
> in your Org directory.
>

I thought requiring org wasn't required anymore?

John

> If this does not work, please use M-x org-version RET a= nd report the
> exact version number.
>
> Thanks,
>
> --
> =C2=A0Bastien
>

--089e0111de624b423404f46a80f4-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Wed, 12 Mar 2014 17:14:26 +0100 Message-ID: <878usfwg0t.fsf@bzg.ath.cx> References: <87mwgvxx8t.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNloW-0004Zf-P6 for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNloQ-0006W0-RK for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:15:28 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:43387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNloQ-0006Vw-Mj for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:15:22 -0400 In-Reply-To: (John Hendy's message of "Wed, 12 Mar 2014 10:29:22 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: M , emacs-orgmode John Hendy writes: > I thought requiring org wasn't required anymore? Yes, it is not required, but better than (load "org"). -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Wed, 12 Mar 2014 16:36:14 +0530 Message-ID: <87eh273cd5.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNgz5-0003vo-1Z for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 07:06:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNgyw-0007to-D8 for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 07:06:02 -0400 Received: from mail-pb0-x235.google.com ([2607:f8b0:400e:c01::235]:42645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNgyv-0007tj-Uq for Emacs-orgmode@gnu.org; Wed, 12 Mar 2014 07:05:54 -0400 Received: by mail-pb0-f53.google.com with SMTP id rp16so936108pbb.40 for ; Wed, 12 Mar 2014 04:05:53 -0700 (PDT) In-Reply-To: (M.'s message of "Wed, 12 Mar 2014 10:55:56 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: M Cc: emacs orgmode-mailinglist M writes: > have to load my settings file manually (open, eval-buffer, close) at > each startup... By hand, do M-x load-file RET path-to-file RET Now after you have done this, do M-x list-command-history RET And copy-paste the relevant portion to your .emacs. That is all. No need to mess with load-path. ---------------------------------------------------------------- Here is what I get, when I follow the above sequence on one of my files. (load-file "~/.emacs.d/lisp/hx.el") From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Wed, 12 Mar 2014 13:08:02 -0500 Message-ID: References: <87mwgvxx8t.fsf@bzg.ath.cx> <878usfwg0t.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNnZU-0002IN-3X for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 14:08:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNnZT-0006C0-7v for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 14:08:04 -0400 In-Reply-To: <878usfwg0t.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: M , emacs-orgmode On Wed, Mar 12, 2014 at 11:14 AM, Bastien wrote: > John Hendy writes: > >> I thought requiring org wasn't required anymore? > > Yes, it is not required, but better than (load "org"). Great -- just making sure I'm not goofing my own setup. Looks like he actually has both: #+begin_quote (require 'icicles) (require 'dired+) (require 'org) (require 'bookmark+) (load "org") #+end_quote John > > -- > Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Beck Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Sat, 15 Mar 2014 07:32:10 +0000 (UTC) Message-ID: References: <87eh273cd5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOj5I-0005IN-HP for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 03:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOj5B-0003iw-7X for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 03:32:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:41734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOj5B-0003ir-0R for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 03:32:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOj59-0006NN-LP for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 08:32:35 +0100 Received: from p5B2DB3C5.dip0.t-ipconnect.de ([91.45.179.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Mar 2014 08:32:35 +0100 Received: from elwood151 by p5B2DB3C5.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Mar 2014 08:32:35 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jambunathan K gmail.com> writes: > > M web.de> writes: > > > have to load my settings file manually (open, eval-buffer, close) at > > each startup... > > By hand, do > > M-x load-file RET path-to-file RET > > Now after you have done this, do > > M-x list-command-history RET > For my understanding: Is there a difference between load and load-file? Anyway, thanks a lot! That helped me quickly finding the source of my 2 real problems: I first loaded the second .el file with my custom settings from my .emacs and then afterwards overwrote these custom agenda settings like the agenda-files with the following commands in my .emacs, which had been inserted at the end of the .emacs file... :-( By placing the loading of my custom settings from the 2nd file at the end of my .emacs, the problem was solved. The other problem was, that due to a permissions problem, the evaluation of my .emacs file was interrupted at the (server-start) command.. Kind regards Martin From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Beck Subject: Re: FW: How to load .el file during startup and execute its commands (Win7/org8) Date: Sat, 15 Mar 2014 07:35:55 +0000 (UTC) Message-ID: References: <87mwgvxx8t.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOjCY-0000Uy-Gq for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 03:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOjCR-0006TR-4t for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 03:40:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:33383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOjCQ-0006TJ-Uk for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 03:40:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOjCP-000548-Ly for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 08:40:05 +0100 Received: from p5B2DB3C5.dip0.t-ipconnect.de ([91.45.179.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Mar 2014 08:40:05 +0100 Received: from elwood151 by p5B2DB3C5.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Mar 2014 08:40:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien gnu.org> writes: > > (load "org") > > Replace this with (require 'org) > > And make sure (1) you have been running ~$ make (or ~$ make autoloads) > in your Org directory. Hi Bastien, thanks a lot, I'll also change this, however the 2 real sources of the problem seemed to be the following: 1) I had the load command for the .el file in the middle of my .emacs (not in the end) and then some agenda settings were overwritten by ,emacs again later. 2) the evaluation of my .emacs was interrupted somewhere in the middle due to permissions problems with the .emacs.d directory ... Kind regards Martin