Skip to content

Instantly share code, notes, and snippets.

View gcentauri's full-sized avatar
💽
retroing to the new thing

Grant Shangreaux gcentauri

💽
retroing to the new thing
View GitHub Profile
(xah-fly--define-keys
(define-prefix-command 'xah-fly-elscreen-key-map)
'( ; qwerty
("j" . elscreen-create) ; c
("t" . elscreen-kill) ; k
("b" . elscreen-next) ; n
("l" . elscreen-previous) ; p
("p" . elscreen-screen-nickname) ; r
))
(defun xah-fly-command-mode-init ()
"Set command mode keys.
Version 2017-01-21"
(interactive)
(xah-fly--define-keys
xah-fly-key-map
'(
("~" . nil)
(":" . nil)
@gcentauri
gcentauri / my-command-mode.el
Created January 7, 2018 16:37
redefining xah command mode keys
(defun my-command-mode ()
(define-key xah-fly-key-map (kbd "p") nil)
;; (define-key xah-fly-key-map ...)
;; ...
)
(add-hook 'xah-fly-command-mode-activate-hook 'my-command-mode)
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)
import Game exposing (..)
import Game.Lenses exposing(..)
main =
Html.beginnerProgram { model = game, view = view, update = update }
type Msg = UpdateGame
@gcentauri
gcentauri / .spacemacs
Created November 15, 2018 22:02
attempt to fix config file
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
@gcentauri
gcentauri / flykeys-modeline.el
Last active November 25, 2018 22:18
elisp config for xah-fly-keys and alternate modeline behavior
(use-package xah-fly-keys
:diminish (xah-fly-keys . "∑")
:init
(setq xah-fly-use-control-key nil)
(defun xfk-command-mode-on ()
(global-hl-line-mode 1)
(set-cursor-color "deep pink")
(setq cursor-type 'box)
)
(defun xfk-insert-mode-on ()
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@gcentauri
gcentauri / .spacemacs
Created November 30, 2018 22:04
testing flykeys integration
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@gcentauri
gcentauri / gist:0a76a231a8a3db10aa399b14bf0c9804
Created January 20, 2019 22:04
my current spacemacs dotfile 1.20.2019
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
@gcentauri
gcentauri / porc-battle.l
Created June 2, 2019 15:52
draft porc battle!
(setq *PlayerHealth NIL)
(setq *PlayerAgility NIL)
(setq *PlayerStrength NIL)
(setq *Monsters NIL)
(setq *MonsterBuilders NIL)
(setq *MonsterNum 6)
(de main ()
(init-monsters)