unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Basic Question
@ 2020-12-23 17:05 Gary Highberger
  2020-12-23 18:16 ` Eric Abrahamsen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gary Highberger @ 2020-12-23 17:05 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Everyone,

My end goal is to use emacs with gnu-smalltalk's built-in emacs interactive
features.

I am running Ubuntu 20.04 on a dual boot, Macbook Air.

I installed and tested both the gui and terminal versions of emacs.

Neither installation switches to content awareness for Smalltalk files
(files with a .st extension).

My Smalltalk files run fine on gnu-smalltalk and edit perfectly with
(content aware) vim.

Does emacs need to be configured to recognize Smalltalk files?

Many thanks,

Gary Highberger


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Basic Question
  2020-12-23 17:05 Basic Question Gary Highberger
@ 2020-12-23 18:16 ` Eric Abrahamsen
  2020-12-23 18:20   ` Jean Louis
  2020-12-23 18:19 ` Jean Louis
  2020-12-23 18:22 ` tomas
  2 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2020-12-23 18:16 UTC (permalink / raw)
  To: help-gnu-emacs

Gary Highberger <gary.highberger@gmail.com> writes:

> Hi Everyone,
>
> My end goal is to use emacs with gnu-smalltalk's built-in emacs interactive
> features.
>
> I am running Ubuntu 20.04 on a dual boot, Macbook Air.
>
> I installed and tested both the gui and terminal versions of emacs.
>
> Neither installation switches to content awareness for Smalltalk files
> (files with a .st extension).
>
> My Smalltalk files run fine on gnu-smalltalk and edit perfectly with
> (content aware) vim.
>
> Does emacs need to be configured to recognize Smalltalk files?

You'll probably have to install a smalltalk-mode explicitly -- it looks
like there's one in the ELPA package repository, if you're using that.
It automatically sets up for .st file extensions.

HTH,
Eric




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Basic Question
  2020-12-23 17:05 Basic Question Gary Highberger
  2020-12-23 18:16 ` Eric Abrahamsen
@ 2020-12-23 18:19 ` Jean Louis
  2020-12-23 18:22 ` tomas
  2 siblings, 0 replies; 6+ messages in thread
From: Jean Louis @ 2020-12-23 18:19 UTC (permalink / raw)
  To: help-gnu-emacs

* Gary Highberger <gary.highberger@gmail.com> [2020-12-23 21:02]:
> Hi Everyone,
> 
> My end goal is to use emacs with gnu-smalltalk's built-in emacs interactive
> features.
> 
> I am running Ubuntu 20.04 on a dual boot, Macbook Air.
> 
> I installed and tested both the gui and terminal versions of emacs.
> 
> Neither installation switches to content awareness for Smalltalk files
> (files with a .st extension).
> 
> My Smalltalk files run fine on gnu-smalltalk and edit perfectly with
> (content aware) vim.
> 
> Does emacs need to be configured to recognize Smalltalk files?

It says here:
https://www.gnu.org/software/smalltalk/manual/html_node/Emacs.html#Emacs

GNU Smalltalk comes with its own Emacs mode for hacking Smalltalk
code. It also provides tools for interacting with a running Smalltalk
system in an Emacs subwindow.

But maybe that Emacs package is not packaged in GNU Smalltalk
distribution.

I can find the smalltalk-mode.el here:
https://git.savannah.gnu.org/cgit/smalltalk.git/tree/?id=5a144882c9bbf2f9ad4dff7103f93f16981644a6

or here:
https://git.savannah.gnu.org/cgit/smalltalk.git/plain/smalltalk-mode.el?id=5a144882c9bbf2f9ad4dff7103f93f16981644a6

And I could open this file:
/usr/share/smalltalk/scripts/Test.st

and invoke M-x smalltalk-mode and see syntax highlighting.

There are other emacs packages here:
https://git.savannah.gnu.org/cgit/smalltalk.git/tree/?id=5a144882c9bbf2f9ad4dff7103f93f16981644a6

To automatically invoke the smalltalk mode, I guess you need this
setting:

(add-to-list 'auto-mode-alist '("\\.st$" . smalltalk-mode))

Jean




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Basic Question
  2020-12-23 18:16 ` Eric Abrahamsen
@ 2020-12-23 18:20   ` Jean Louis
  0 siblings, 0 replies; 6+ messages in thread
From: Jean Louis @ 2020-12-23 18:20 UTC (permalink / raw)
  To: help-gnu-emacs

* Eric Abrahamsen <eric@ericabrahamsen.net> [2020-12-23 21:18]:
> You'll probably have to install a smalltalk-mode explicitly -- it looks
> like there's one in the ELPA package repository, if you're using that.
> It automatically sets up for .st file extensions.

That may be better, you were faster Eric, and I did not even look into
GNU ELPA.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Basic Question
  2020-12-23 17:05 Basic Question Gary Highberger
  2020-12-23 18:16 ` Eric Abrahamsen
  2020-12-23 18:19 ` Jean Louis
@ 2020-12-23 18:22 ` tomas
  2020-12-23 19:19   ` Smalltalk-mode (was: Basic Question) Stefan Monnier
  2 siblings, 1 reply; 6+ messages in thread
From: tomas @ 2020-12-23 18:22 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

On Wed, Dec 23, 2020 at 12:05:23PM -0500, Gary Highberger wrote:
> Hi Everyone,
> 
> My end goal is to use emacs with gnu-smalltalk's built-in emacs interactive
> features.
> 
> I am running Ubuntu 20.04 on a dual boot, Macbook Air.
> 
> I installed and tested both the gui and terminal versions of emacs.
> 
> Neither installation switches to content awareness for Smalltalk files
> (files with a .st extension).
> 
> My Smalltalk files run fine on gnu-smalltalk and edit perfectly with
> (content aware) vim.
> 
> Does emacs need to be configured to recognize Smalltalk files?
> 
> Many thanks,

There is (at least) one smalltalk mode available from Elpa, the
Emacs package repository. In Emacs, do M-x list-packages and search
in that buffer (C-s) for "smalltalk".

You can download/install it from there.

(If those instructions are too terse, you're welcome to ask).

As to the mode itself, I can't say much, since I haven't tried it.
Perhaps someone more knwledgeable can chime in.

Cheers
 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Smalltalk-mode (was: Basic Question)
  2020-12-23 18:22 ` tomas
@ 2020-12-23 19:19   ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2020-12-23 19:19 UTC (permalink / raw)
  To: help-gnu-emacs

> As to the mode itself, I can't say much, since I haven't tried it.
> Perhaps someone more knwledgeable can chime in.

I haven't tried the interactive read-eval-print loop (via `gst-mode`,
bundled in the `smalltalk-mode` package), so I don't know how well it
works, but the major mode used to edit the actual code has been updated
recently (by yours truly).

The GNU ELPA package should definitely work better than the code bundled
with GNU Smalltalk (unless they updated it to the version in GNU ELPA?),
especially w.r.t auto-indentation.


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-23 19:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-23 17:05 Basic Question Gary Highberger
2020-12-23 18:16 ` Eric Abrahamsen
2020-12-23 18:20   ` Jean Louis
2020-12-23 18:19 ` Jean Louis
2020-12-23 18:22 ` tomas
2020-12-23 19:19   ` Smalltalk-mode (was: Basic Question) Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).