Skip to content

Instantly share code, notes, and snippets.

@amirrajan
Last active December 15, 2020 20:33
Show Gist options
  • Save amirrajan/c7c001638861a7f72067fe216097f964 to your computer and use it in GitHub Desktop.
Save amirrajan/c7c001638861a7f72067fe216097f964 to your computer and use it in GitHub Desktop.
Hello world emacs configuration for Windows for DragonRuby Game Toolkit.
;; create init.el under the directory: C:\Users\YOURUSERNAME\.emacs.d\init.el
;; download the dragonruby logo and save it as logo.png under C:\Users\YOURUSERNAME\.emacs.d\logo.png
;; url for logo: https://dragonruby.herokuapp.com/assets/logo-48676b845a1ad9b0218a5717cec4ce503f543d65e596044ec2117d910eeccda0.png
;; resize the logo to your liking
;; start git bash as an Administrator
;; type emacs and press enter
;; here are the contents for init.el
;; initialization stuff
(toggle-frame-maximized)
(defun display-startup-echo-area-message () (message ""))
(setq frame-title-format '("DragonRuby Game Toolkit IDE"))
(require 'package)
(package-initialize)
;; Emacs has an official repository of packages and a more current
;; unofficial one. Melpa is the 'unoffical one' (which in this
;; case translates to more up to date, newer, and by extension,
;; a bit more volatile). The official repo is called org. This
;; repo is slow changing and extremely stable (but doesn't have
;; all the cool/cutting edge packages that are being used).
(push '("melpa" . "http://melpa.org/packages/") package-archives)
(push '("org" . "http://orgmode.org/elpa/") package-archives)
(push '("melpa-stable" . "https://stable.melpa.org/packages/") package-archives)
;; this function bootstraps emacs with minimal plugins
(defun dragonruby-reinstall-packages-core ()
;; Emacs keeps a cache of the package list locally. We'll
;; initialize this cache once. If you ever go to install a package
;; and it cant be found, just rerun (package-reresh-contents).
(unless package-archive-contents (package-refresh-contents))
;; Here is our big bad package list. Whenever you want to
;; install a new package, just add it to this list.
(setq bootstrap-list '(use-package))
(dolist (package bootstrap-list)
(unless (package-installed-p package)
(package-install package))))
(defun dragonruby-reinstall-packages () (interactive) (dragonruby-reinstall-packages-core))
(dragonruby-reinstall-packages-core)
(use-package dashboard
:ensure t
:config
(setq dashboard-startup-banner "~/.emacs.d/logo.png")
(setq dashboard-banner-logo-title "DragonRuby Game Toolkit IDE")
(setq dashboard-items '())
(setq dashboard-set-footer nil)
(setq dashboard-init-info "")
(setq dashboard-show-shortcuts nil)
(dashboard-setup-startup-hook))
(use-package projectile
:ensure t
:config
(projectile-global-mode)
(add-to-list 'projectile-globally-ignored-files "*.png"))
(use-package ido
:ensure t
:config
(ido-mode 1)
(ido-everywhere 1))
(use-package ido-vertical-mode
:ensure t
:config
(ido-vertical-mode 1))
(use-package flx-ido
:ensure t
:config
(flx-ido-mode 1)
(setq ido-enable-flex-matching t)
(setq ido-use-faces t)
(setq ido-enable-flex-matching t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment