Commits

Toby Davies committed 7ea5bc0

added stuff

Comments (0)

Files changed (5)

 (require 'flymake)
 (require 'flymake-cursor)
 (require 'mediawiki)
+(require 'autopair)
+
+(defvar autopair-modes '(python-mode))
+(defun turn-on-autopair-mode () (autopair-mode 1))
+(dolist (mode autopair-modes) (add-hook (intern (concat (symbol-name mode) "-hook")) 'turn-on-autopair-mode))
+
 
 (setq-default indent-tabs-mode nil)
 (setq column-number-mode t)
 		      temp-file
 		      (file-name-directory buffer-file-name))))
     (list "pycheck"  (list local-file))))
+
 (add-to-list 'flymake-allowed-file-name-masks
              '("\\.py\\'" flymake-pyflakes-init))
 

.xmonad/startup.d/remap-caps

+#!/bin/bash
+
+xmodmap - <<EOF
+remove Lock = Caps_Lock
+remove Control = Control_L
+keysym Caps_Lock = Control_L
+add Lock = Caps_Lock
+add Control = Control_L
+EOF

.xmonad/xmonad.hs

   ("M1-<F4>", kill),
   ("M-x", spawn "visit"),
   ("M-z", safeSpawn "zsh" ["-c", "sensible-browser"]),
-  ("M-0", spawn "notify-send \"`date '+%I:%M %p %A'`\" \"`date '+%Y-%m-%d'`\""),
+  ("M-0", spawn "popup-notify"),
   --  ("M-S-0", spawn "notify-send \"`date '+%A %Y-%m-%d %T'`\" \"`cal`\""),
   ("M-S-0", spawn "zenity --calendar --text=\"Now: `date`\""),
   ("M-s", inputPrompt defaultXPConfig "Google" ?+ \t -> safeSpawn "search" [t]),
+#!/usr/bin/zsh
+
+TIME=$(date '+%I:%M %p %A')
+DATE=$(date '+%Y-%m-%d')
+BATT=$(acpi | sed 's/,\s*rate information unavailable//')
+
+notify-send $TIME "$DATE\n\n$BATT"
-#!/usr/bin/zsh
-pylint -d W0142 --max-line-length 125 "$1" | sed 's|^\([^:]*\):\([0-9]*\)|'"$1"':\2:\1|'
+#!/bin/bash
+pylint "$1" | sed 's|^\([^:]*\):\s*\([^:]*\):\s*|'"$1"':\2: \1: |' 
 pyflakes "$1"
 pep8 --ignore=E225,E501 --repeat "$1"
 true