osx - cannot open Singular on a running emacs -
i newbies in singular. downloaded singular4-0-2_64.dmg, mounted image, right-ckick, show package contents, moved contents folder applications directory. double-clicking contents/macos/singular (or esingular) have singular running in terminal (or via emacs in terminal). when try m-x singular in running emacs, says "cannot open load file : no such file or directory, singular".
then copied .emacs-general , .emacs-singular home directory. adding following lines .emacs
(setq load-path (cons "" load-path)) (autoload 'singular "singular" "start singular using default values." t) (autoload 'singular-other "singular" "ask arguments , start singular." t)
changing singular-emacs-home-directory /applications/singular.app/contents/share/singular/emacs/ still doesn't work. when replace .emacs .emacs-singular, replacing above directory, gives error: warning (initialization): error occurred while loading `/users/me/.emacs':
symbol's value variable void: /applications/singular.app/contents/share/singular/emacs
am not finding right singular-emacs-home-directroty or there other problem?
i appreciate help.
also must mention user of emacs macaulay2. have changed .emacs , .emacs-macaulay2 in order teach emacs m2. there similar done singular? shall have file .emacs-singular somewhere?
thanks help.
here basic settings assume singular.app has been installed /applications
folder. chose set absolute path executable, instead of setting path
in emacs. path
in emacs on osx (by default) not same 1 except see in let's terminal.app. [but, setting path
beyond scope of basic answer.]
my personal preference have of lisp
, configuration files in custom directory purposes of editing , backup up. limited example leaves are.
in emacs master branch (february 7, 2016), there no built-in variable named current-menubar
-- configuration files looking existence of variable. did not spend time debug built-in configuration files find out version of emacs designed for, , did not spend time make singular elisp
libraries compatible latest emacs master branch.
add following lines of code .emacs
file in home directory, save file, , restart emacs. type m-x singular ret
(add-to-list 'load-path "/applications/singular.app/contents/share/singular/emacs/") (require 'singular) (setq singular-emacs-home-directory "/applications/singular.app/contents/share/singular/emacs/") (defvar current-menubar nil) (setq singular-executable-default "/applications/singular.app/contents/macos/singular") (load-file "/applications/singular.app/contents/share/singular/emacs/.emacs-general") (load-file "/applications/singular.app/contents/share/singular/emacs/.emacs-singular")
Comments
Post a Comment