Emacs

Setting up Emacs for Magik development

If you have problems with the outdated Emacs version (previously) supplied by GE, or you want to enjoy the newest and latest features, you can install a recent version.
Just download Emacs (if you're not sure which version to download, download emacs-26.1-x86_64.zip).

Next you will need to create an init.el file in your %appdata%/.emacs.d folder (you might want to move your old dotemacs out of the way).
Add this:

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; Package configs
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives (cons "melpa" (concat "http" (if (gnutls-available-p) "s") "://stable.melpa.org/packages/")))
(package-initialize)

;; Set up use-package
;; https://github.com/jwiegley/use-package
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile (require 'use-package))
(require 'bind-key)

;; Magik-mode Major mode for Magik files
;; https://github.com/roadrunner1776/magik
(use-package magik-mode
  :ensure t
  :config
  (progn
    (setq magik-shell-auto-insert-dollar t)
    (magik-global-bindings)
    (magik-menu-set-menus)))

Now you're ready to start using the most recent Emacs version.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License