summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/custom.el24
-rw-r--r--.config/emacs/init.el7
-rw-r--r--.config/maildirproc/att.rc40
3 files changed, 54 insertions, 17 deletions
diff --git a/.config/emacs/custom.el b/.config/emacs/custom.el
index a099221..ac20ba1 100644
--- a/.config/emacs/custom.el
+++ b/.config/emacs/custom.el
@@ -33,11 +33,30 @@
(quote
("xelatex -interaction nonstopmode -output-directory %o %f" "xelatex -interaction nonstopmode -output-directory %o %f" "xelatex -interaction nonstopmode -output-directory %o %f")))
'(org-src-fontify-natively t)
+ '(package-selected-packages
+ (quote
+ (wanderlust yaml-mode scss-mode nginx-mode markdown-mode less-css-mode haml-mode graphviz-dot-mode go-mode glsl-mode php-mode php-mode-improved coffee-mode bison-mode smart-tabs-mode page-break-lines dtrt-indent)))
'(ruby-deep-arglist nil)
'(ruby-deep-indent-paren nil)
'(safe-local-variable-values
(quote
- ((Nginx-indent-tabs-mode)
+ ((Fill-Column . 64)
+ (eval c-set-offset
+ (quote arglist-close)
+ 0)
+ (eval c-set-offset
+ (quote arglist-intro)
+ (quote ++))
+ (eval c-set-offset
+ (quote case-label)
+ 0)
+ (eval c-set-offset
+ (quote statement-case-open)
+ 0)
+ (eval c-set-offset
+ (quote substatement-open)
+ 0)
+ (Nginx-indent-tabs-mode)
(Nginx-indent-level . 4)
(Nginx-indent-level . 8)
(c-set-style . "K&R"))))
@@ -46,7 +65,8 @@
'(smtpmail-smtp-server "plus.smtp.mail.yahoo.com")
'(smtpmail-smtp-service 587)
'(tramp-use-ssh-controlmaster-options nil)
- '(uniquify-buffer-name-style (quote post-forward-angle-brackets) nil (uniquify)))
+ '(uniquify-buffer-name-style (quote post-forward-angle-brackets) nil (uniquify))
+ '(use-package-verbose (quote debug)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 8d8859e..b7ee6df 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -13,10 +13,12 @@
elmo-cache-directory (concat xdg-cache-home "emacs/elmo-cache/")
auto-save-list-file-prefix (concat xdg-cache-home "emacs/auto-save-list/saves-")
tramp-persistency-file-name (concat xdg-cache-home "emacs/tramp-cache.el")
- custom-file (concat user-emacs-directory "custom.el")
wl-init-file (concat user-emacs-directory "wl.el")
)
+(setq custom-file (concat user-emacs-directory "custom.el"))
+(load custom-file 'noerror)
+
;;;; The basics that I can't use Emacs without ;;;;;;;;;;;;;;;;;;;;;;;
(show-paren-mode 1)
(column-number-mode 1)
@@ -36,7 +38,6 @@
point-entered minibuffer-avoid-prompt
face minibuffer-prompt
))
-(load custom-file 'noerror)
;;;; Early settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -299,5 +300,7 @@ sh-script.el is broken."
(add-to-list 'auto-mode-alist '("PKGBUILD" . sh-mode))
(add-to-list 'auto-mode-alist '("SRCBUILD" . sh-mode))
+(add-to-list 'auto-mode-alist '("\\.mak\\'" . makefile-gmake-mode))
(add-to-list 'auto-mode-alist '("\\.jad\\'" . java-mode))
+
(put 'downcase-region 'disabled nil)
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc
index 79d4469..67335e7 100644
--- a/.config/maildirproc/att.rc
+++ b/.config/maildirproc/att.rc
@@ -47,7 +47,7 @@ def majordomo_domain(mail, domain):
if m:
return m.group(1)
-def is_to_or_from(mail,address):
+def is_to_or_from(mail, address):
"""
Return true if [mail] is to or from an address that contains [address].
"""
@@ -56,7 +56,7 @@ def is_to_or_from(mail,address):
or mail["From"].contains(address)
or mail["Reply-To"].contains(address)
or mail.target.contains(address))
-def is_to_or_from_re(mail,address):
+def is_to_or_from_re(mail, address):
"""
Return true if [mail] is to or from an address that matches the
regex [address].
@@ -86,7 +86,7 @@ def bogofilter_spam(mail):
#
# The core of my filters
-def move_ham(mail,folder):
+def move_ham(mail, folder):
y = datetime.datetime.now().year
folder = "FOLDERS.Ham."+str(y)+folder
dir = processor.maildir_base+"/"+folder
@@ -157,6 +157,7 @@ def my_filters(mail):
[ 'lists.fedorahosted.org', 'fedorahosted' ],
[ 'lists.arthurdejong.org', 'arthurdejong' ],
[ 'lists.stanford.edu', 'stanford' ],
+ [ 'mailman.stanford.edu', 'stanford' ],
[ 'lists.parabola.nu', 'parabola' ],
[ 'parabola.nu', 'parabola' ] ]:
list = mailman_domain(mail, pair[0])
@@ -185,7 +186,7 @@ def my_filters(mail):
move_ham(mail, ".software.parabola")
return
# .software.POSIX
- if is_to_or_from(mail,"austin-group-l@opengroup.org"):
+ if is_to_or_from(mail, "austin-group-l@opengroup.org"):
move_ham(mail, ".software.POSIX")
return
# .software.TravisCI
@@ -215,7 +216,7 @@ def my_filters(mail):
"@sourceforge.com",
"@thyrsus.com",
]:
- if is_to_or_from(mail,address):
+ if is_to_or_from(mail, address):
move_ham(mail, ".software")
return
# .servers
@@ -243,7 +244,7 @@ def my_filters(mail):
if mail["From"].matches("@xkcd\.com"):
move_ham(mail, ".Social.xkcd")
return
- if is_to_or_from(mail,"linkedin.com"):
+ if is_to_or_from(mail, "linkedin.com"):
move_ham(mail, ".Social.LinkedIn")
return
# .BSA
@@ -274,8 +275,8 @@ def my_filters(mail):
move_ham(mail, ".BSA")
return
# .FRC
- for address in [ "@ni.com", "@usfirst.org" ]:
- if is_to_or_from(mail,address):
+ for address in [ "@ni.com", "@usfirst.org", "@firstinspires.org" ]:
+ if is_to_or_from(mail, address):
move_ham(mail, ".FRC")
return
# .FRC.829
@@ -326,21 +327,22 @@ def my_filters(mail):
if (
False
or mail["Subject"].contains("[PASE]")
- or is_to_or_from(mail,"Purduealumni@purdue.edu")
- or is_to_or_from(mail,"pase@purdue.edu")
+ or is_to_or_from(mail, "Purduealumni@purdue.edu")
+ or is_to_or_from(mail, "pase@purdue.edu")
):
move_ham(mail, ".Purdue.PASE")
return
if mail["Subject"].contains("[PLUG]"):
move_ham(mail, ".Purdue.PLUG")
return
- if is_to_or_from(mail,"@cerias.purdue.edu"):
+ if is_to_or_from(mail, "@cerias.purdue.edu"):
move_ham(mail, ".Purdue.CERIAS")
return
if (
False
- or is_to_or_from(mail,"royfu@purdue.edu")
- or is_to_or_from(mail,"usmannkhan@purdue.edu")
+ or is_to_or_from(mail, "purduehackers@gmail.com")
+ or is_to_or_from(mail, "royfu@purdue.edu")
+ or is_to_or_from(mail, "usmannkhan@purdue.edu")
):
move_ham(mail, ".Purdue.Hackers")
return
@@ -351,6 +353,17 @@ def my_filters(mail):
):
move_ham(mail, ".Purdue.CS")
return
+ if (
+ False
+ or is_to_or_from(mail, "askcco@purdue.edu")
+ or is_to_or_from_re(mail, "pmx-auto-approve\+.*@purdue\.edu")
+ or is_to_or_from(mail, "evertrue@purdue.edu")
+ or is_to_or_from(mail, "college.response@purdue.edu")
+ or is_to_or_from(mail, "purduepresident@purdue.edu")
+ or is_to_or_from(mail, "@prf.org")
+ ):
+ move_ham(mail, ".Purdue.misc")
+ return
# .misc.*
if mail["From"].matches("schwab\.com"):
move_ham(mail, ".misc.schwab")
@@ -400,6 +413,7 @@ def my_filters(mail):
or mail["From"].contains("sales@solutionsinplastic.com")
or mail["From"].contains("social@goodwillindy.org")
or mail["From"].contains("support@support.digitalocean.com")
+ or mail["From"].contains("@pardonsnowden.org")
):
move_ham(mail, ".misc.Newsletters")
return