Search code examples
emacselispdot-emacs

Cannot open file cua in second instance of Emacs?


i get the following error when trying to open a second instance of emacs:

File error: "Cannot open load file" , "cua"

I guess I don't HAVE to open another instance of emacs (that is the beauty after all), I was just trying to keep some things separated (specifically work - like code and debug - and play - like news).

Would there be any reason I could not open two instances of emacs if I use cua.el?


Solution

  • solved the problem, so i figured i should post in case anyone else is seeing the same thing.

    it turns out, it has NOTHING to do with a second instance of emacs. i cant even open a SINGLE instance (i just had been running one instance since before i saw the problem i guess... only noticed this time because of a shutdown).

    i changed the following and the problem disappeared. in my .emacs file:

    (require 'cua)
    (CUA-mode t)

    TO

    (load-file "cua.el") ;; or if you compiled it (load-file "cua.elc")
    (CUA-mode t)

    this did the trick for me... although i am not sure why.

    thanks to all who commented.

    PS - i am using emacs 21.3.1, so i do have an older version. if any readers have the option, justinhj's comment above (about upgrading) is probably the easiest answer. CUA is built into version 22 and above i believe.