The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Clickable emacs (http://hintsforums.macworld.com/showthread.php?t=12572)

Kevsteelio 06-11-2003 04:40 PM

Clickable emacs
 
How do I / Is it possible to

get emacs with menus and windows that I can click - without installing fink?

What is Fink exactly?

Why do people say you have to install Fink to get all those other programs to work?

Thanks

yellow 06-11-2003 05:42 PM

Fink is an utility that has prebuilt BSD & X11 packages. For the programmer & non-programmer alike this makes life very easy.. I no longer have to download and try to build nmap on my own hoping that the libs will match up or geting the pieces parts needed to build it right. I need only type (when fink is installed) "fink install nmap" and away I go! You don't have to use fink, but if you've got the option, why not use it?

I believe XEmacs has what you are looking for. It's a far more GUIfied text editor then it's predecessor. It's probably going to be easier to install fink and use fink to build it then trying to do it on your own.. unless you like a challenge.

java_guy 06-11-2003 07:52 PM

http://homepage.mac.com/pjarvis/xemacs-21.5.9.html


contains OS X native version of XEmacs which does not require X11 to be running.

Just another option.

yellow 06-11-2003 09:15 PM

Ah cool find Java_guy!

saurya_s 04-07-2004 04:57 PM

Quote:

Originally Posted by yellow
Ah cool find Java_guy!

Yellow, check out other version . There are 2 - one from Mindlube and one from Enrico fanconi at Macupdate.com.
However, I was not able to open /save file from remote server by either of them. Are you able to do so? Let me know if you have.
Though they wrok amazing on Linux/Unix.
SS

huskerchad 04-07-2004 07:20 PM

I love Enhanced Carbon Emacs.

rdm 04-22-2004 12:01 AM

You can find 21.3.50 versions of regular emacs here
 
Xemacs and Emacs have a long history of disagreement, and I'm not about to get into all the differences. However, they do seem to be converging in many ways these days.

If you are trying to find a regular emacs that has clickable menus, you can find one at: http://mindlube.com/products/emacs/index.html There are a few different varieties there. I personally recommend the one from Andrew Choi, who did a lot of work to make one that works well with Panther.

saurya_s 04-22-2004 06:43 AM

Quote:

Originally Posted by rdm
Xemacs and Emacs have a long history of disagreement, and I'm not about to get into all the differences. However, they do seem to be converging in many ways these days.

If you are trying to find a regular emacs that has clickable menus, you can find one at: http://mindlube.com/products/emacs/index.html There are a few different varieties there. I personally recommend the one from Andrew Choi, who did a lot of work to make one that works well with Panther.

Does this one can/open file from/to remote ftp server?
SS

jclark 08-12-2004 11:42 AM

Isn't there a way to get the native emacs of mac os x to open in a new window when you summon it from the terminal app, and that way it has all the buttons? I understood that X11 was involved in some way. I know that the latest emacs 21 or whatever it is has all the buttons without having to be XEmacs. I cant figure out how to get the terminal app to squirt emacs into a separate window though.

Jen

yellow 08-12-2004 11:51 AM

Quote:

Originally Posted by jclark
I cant figure out how to get the terminal app to squirt emacs into a separate window though.

Terminal.app isn't X11. So opening emacs from within Terminal.app won't open a new window. To do that you'd have to launch emacs from within an xterm within X11. Supposedly it supports new windows in X11, but I've not been able to get it to work right using the built-in emacs. So I installed Xemacs with fink.

jclark 08-12-2004 12:03 PM

When you say "Supposedly it supports new windows in X11", do you mean that the terminal app is meant to be able to send it's emacs to the X11 which will then produce the emacs window?

Jen

jclark 08-12-2004 12:22 PM

If I install XEmacs with fink then how do I get the terminal app to launch that as my default editor? I have:

# set editor
setenv EDITOR "emacs"

in my .tcshrc file just now. Do I just change it to

# set editor
setenv EDITOR "XEmacs"

Thanks,

Jen

yellow 08-12-2004 12:53 PM

Quote:

Originally Posted by jclark
When you say "Supposedly it supports new windows in X11", do you mean that the terminal app is meant to be able to send it's emacs to the X11 which will then produce the emacs window?

No. I mean supposedly if you read the man page the default emacs should be configurable to open in a new window, in X11 (not from within Terminal.app), but I've never managed to get it to work.

I'm doubting that you can open emacs within Terminal.app and have it automatically open X11. Maybe with a script.

open -a X11 script_to_start_emacs

sao 08-12-2004 01:43 PM

I installed with Fink the package emacs21-xaw3d with X11 support and 3D bars and also installed the Xemacs package. If X11 is running, I can open emacs in a GUI window from Terminal.app without problems. And using an AppleScript saved as an application, I can open both, Apple's X11 and emacs21-xaw3d.


Code:

[pm @ Sao: ~] % fink list -i emacs
Information about 3848 packages read in 1 seconds.
 i  emacs21-xaw3d            21.3.50-20040617-  Flexible real-time text editor, v21.3, with X11 support & 3D scroll...
 i  emacsen-common          1.4.15-1          Common facilities for all emacsen
 i  xemacs                  1:21.4.15-1        Highly customizable text editor
 i  xemacs-sumo-pkg          20040202-1        All xemacs packages together


jclark 08-13-2004 12:19 PM

That sounds like a good idea. I'm having a bit of trouble doing it. Have you any idea of what I'm doing wrong from the feedback below:

[catfish:~] jclark% fink list -i emacs
Information about 1499 packages read in 5 seconds.
[catfish:~] jclark% fink install emacs21-xaw3d
/usr/bin/sudo /sw/bin/fink install emacs21-xaw3d
Password:
Information about 1499 packages read in 2 seconds.
Failed: no matching version found for emacs21
[catfish:~] jclark%

Thanks :)

yellow 08-13-2004 01:01 PM

Please post the results of:

fink --version

sao 08-13-2004 01:51 PM

Quote:

wrote:
catfish:~] jclark% fink install emacs21-xaw3d
/usr/bin/sudo /sw/bin/fink install emacs21-xaw3d
Password:
Information about 1499 packages read in 2 seconds.
Failed: no matching version found for emacs21
To install the package emacs21-xaw3d in Panther, you need to 'enable' Fink to use the 'unstable' branch. Edit the /sw/etc/fink.conf file and add to the beginning of the "Trees:" line:

unstable/main unstable/crypto


Code:

Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap

Save the file and then run the commands:

fink index
fink selfupdate
fink install emacs21-xaw3d

jclark 08-16-2004 04:38 AM

Quote:

Originally Posted by yellow
Please post the results of:

fink --version


[catfish:~] jclark% fink --version
Package manager version: 0.18.4
Distribution version: 0.7.0

Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2003 The Fink Package Manager Team
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

jclark 08-16-2004 07:50 AM

Quote:

Originally Posted by sao
To install the package emacs21-xaw3d in Panther, you need to 'enable' Fink to use the 'unstable' branch. Edit the /sw/etc/fink.conf file and add to the beginning of the "Trees:" line:

unstable/main unstable/crypto


Code:

Trees: local/main unstable/main unstable/crypto stable/main stable/crypto local/bootstrap

Save the file and then run the commands:

fink index
fink selfupdate
fink install emacs21-xaw3d


Hi,

I did this bit now:

[catfish:~] jclark% fink list -i emacs
Information about 3835 packages read in 8 seconds.
i emacs21-xaw3d 21.3.50-20 Flexible real-time text editor, v21.3, w...
i emacsen-common 1.4.15-1 Common facilities for all emacsen

I started X11 and and then typed 'emacs' at the command line in the terminal app, and emacs opened as a text thing the way it does normally, inside the terminal window. Is there something else I should do?

I didn't relly get what you meant when you said this:

'And using an AppleScript saved as an application, I can open both, Apple's X11 and emacs21-xaw3d.'


Thanks,

Jen
:)

jclark 08-16-2004 12:10 PM

Hi again,

I read http://forums.macosxhints.com/showth...ght=%24DISPLAY

and put

if (! $?DISPLAY) then
setenv DISPLAY :0.0
endif

into my .tcshrc file and now the emacs window pops out of the terminal window when I type 'emacs'. It has all the buttons and everything.

Jen :)

sao 08-16-2004 01:35 PM

Quote:

jclark wrote:
I didn't relly get what you meant when you said this:
.........
'And using an AppleScript saved as an application, I can open both, Apple's X11 and emacs21-xaw3d.'

You can start both Apple's X11 and emacs21 by running from Terminal.app:

open-x11 emacs21



--Also, you can write an AppleScript and save it as an application:

Open /Applications/Script Editor.app:


Copy/Paste:

Code:

do shell script "open-x11 /sw/bin/emacs21 > /dev/null 2>&1 </dev/null &"
Save it to the Desktop as an Application. Copy/paste a nice icon over it and put it in the dock.

.


All times are GMT -5. The time now is 10:25 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.