about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--brutalmaze/.config/brutalmaze/settings.ini3
-rw-r--r--emacs/.emacs.d/init.el51
2 files changed, 17 insertions, 37 deletions
diff --git a/brutalmaze/.config/brutalmaze/settings.ini b/brutalmaze/.config/brutalmaze/settings.ini
index aae249e..58f3d05 100644
--- a/brutalmaze/.config/brutalmaze/settings.ini
+++ b/brutalmaze/.config/brutalmaze/settings.ini
@@ -12,6 +12,7 @@ Music volume: 1.0
 Space theme: yes
 
 [Control]
+Touch: no
 # Input values should be either from Mouse1 to Mouse3 or a keyboard key
 # and they are case-insensitively read.
 # Aliases for special keys are listed here (without the K_ part):
@@ -24,8 +25,6 @@ Move left: a
 Move right: d
 Move up: w
 Move down: s
-# Move hero using mouse
-Auto move: Mouse2
 Long-range attack: Mouse1
 Close-range attack: Mouse3
 
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 8947236..b31b2c3 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -7,6 +7,14 @@
 (package-initialize)
 (pdf-tools-install)
 
+(require 'slime)
+(setq inferior-lisp-program "sbcl --noinform"
+      slime-contribs '(slime-fancy))
+(require 'geiser)
+(setq-default geiser-active-implementations '(guile racket))
+(setq-default geiser-repl-use-other-window nil)
+(setq-default geiser-repl-query-on-kill-p nil)
+
 (custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
@@ -20,7 +28,9 @@
    ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
  '(column-number-mode t)
  '(custom-enabled-themes (quote (tango)))
- '(package-selected-packages (quote (magit geiser slime pdf-tools)))
+ '(package-selected-packages
+   (quote
+    (smart-tabs-mode auctex wordnut magit geiser slime pdf-tools)))
  '(scroll-bar-mode nil)
  '(show-paren-mode t)
  '(tool-bar-mode nil)
@@ -41,41 +51,12 @@
 (add-hook 'prog-mode-hook 'ruler-mode)
 (setq-default indent-tabs-mode nil)
 (add-hook 'find-file-hook 'whitespace-mode)
+(global-set-key (kbd "C-<tab>") (lambda () (interactive) (other-window -1)))
 (global-set-key (kbd "C-<return>") #'cua-rectangle-mark-mode)
 
-(defun c-lineup-arglist-tabs-only (ignored)
-  "Line up argument lists by tabs, not spaces"
-  (let* ((anchor (c-langelem-pos c-syntactic-element))
-         (column (c-langelem-2nd-pos c-syntactic-element))
-         (offset (- (1+ column) anchor))
-         (steps (floor offset c-basic-offset)))
-    (* (max steps 1)
-       c-basic-offset)))
-
-(add-hook 'c-mode-common-hook
-          (lambda ()
-            ;; Add kernel style
-            (c-add-style
-             "linux-tabs-only"
-             '("linux" (c-offsets-alist
-                        (arglist-cont-nonempty
-                         c-lineup-gcc-asm-reg
-                         c-lineup-arglist-tabs-only))))))
-
-(add-hook 'c-mode-hook
-          (lambda ()
-            (setq indent-tabs-mode t)
-            (setq show-trailing-whitespace t)
-            (c-set-style "linux-tabs-only")))
+(smart-tabs-insinuate 'c)
+(setq c-default-style "linux")
+(add-hook 'python-mode-hook (lambda () (setq comment-fill-column 72)))
+(add-hook 'pdf-tools-enabled-hook 'auto-revert-mode)
 
-(add-hook 'scheme-mode-hook
-          (lambda ()
-            (require 'geiser)
-            (setq-default geiser-active-implementations '(guile racket))
-            (setq-default geiser-repl-use-other-window nil)
-            (setq-default geiser-repl-query-on-kill-p nil)))
-(add-hook 'python-mode-hook
-          (lambda () (setq comment-fill-column 72)))
-; The SBCL binary and command-line arguments
-(setq inferior-lisp-program "/usr/local/bin/sbcl --noinform")
 (when window-system (set-frame-size (selected-frame) 80 25))