diff options
-rwxr-xr-x | .Xrc.cs | 31 | ||||
-rw-r--r-- | .Xresources | 20 | ||||
-rw-r--r-- | .bashrc | 3 | ||||
-rw-r--r-- | .crontab | 3 | ||||
-rw-r--r-- | .dmrc | 4 | ||||
-rw-r--r-- | .emacs | 192 | ||||
-rwxr-xr-x | .local.sun4u/bin/grep | 2 | ||||
-rwxr-xr-x | .local.sun4u/bin/sed | 2 | ||||
-rw-r--r-- | .login | 6 | ||||
-rw-r--r-- | .login-daemons | 8 | ||||
-rw-r--r-- | .profile | 15 |
11 files changed, 82 insertions, 204 deletions
@@ -0,0 +1,31 @@ +#!/bin/sh + +eval `/usr/local/bin/defaultpaths -sh` + +eval `xrdb -global -symbols | sed -ne '/=/!d;s/^-D//;p'` + +host=`/usr/local/bin/shorthostname | sed -e 'h;s/.//;x;s/\(.\).*/\1/;y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/;G;s/\n//'` + +# For OpenWindows apps +if [ -d /usr/openwin ]; then + OPENWINHOME=/usr/openwin; export OPENWINHOME + HELPPATH=$OPENWINHOME/lib/help; export HELPPATH + PATH=${PATH}:/usr/openwin/bin +fi + +# load .Xresources and .Xdefaults into the X resource database +for i in $HOME/.Xresources $HOME/.Xdefaults; do + [ -f $i ] && xrdb -merge $i +done + +# do these in a subshell so they don't become zombies on exit +( + xscreensaver & + fvwm & # window manager + xterm -geometry 80x24-0+257 -T "$host" -n "$host" & +) + +# only grab the actual console when we're running on a local display +[ "$SERVERHOST" != "lore.cs.purdue.edu" -a "$SERVERHOST" = "$CLIENTHOST" ] && consflag=-C +# kill this xterm to end your session +exec xterm $consflag -geometry 80x14-0+15 -T console -n console -fg darkslategray -bg burlywood3 diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..2b8f856 --- /dev/null +++ b/.Xresources @@ -0,0 +1,20 @@ +xscreensaver.timeout: 0:10:00 +xscreensaver.cycle: 0:10:00 +xscreensaver.lock: True +xscreensaver.lockTimeout: 0:00:00 +xscreensaver.passwdTimeout: 0:01:00 +xscreensaver.passwdTimeoutEnable: True +xscreensaver.dpmsEnabled: True +xscreensaver.dpmsStandby: 0:10:00 +xscreensaver.dpmsSuspend: 0:10:00 +xscreensaver.dpmsOff: 0:10:00 + +XTerm*iconic: off +XTerm*loginShell: on +XTerm*reverseWrap: on +XTerm*saveLines: 200 +XTerm*scrollBar: on +XTerm*visualBell: off +XTerm*font: 7x13 + +Dtterm*loginShell: on @@ -30,9 +30,6 @@ shopt -s globstar # "We have a cached value, but it isn't valid anymore. Should we trash it?" shopt -s checkhash -# make less more friendly for non-text input files, see lesspipe(1) -[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) @@ -1,3 +0,0 @@ -# m h dom mon dow command -*/5 * * * * cd $HOME && make -*/5 * * * * offlineimap-runner 2 -u quiet @@ -0,0 +1,4 @@ + + +[Desktop] +Session=gnome @@ -1,180 +1,12 @@ -;; Preliminary settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(set-face-attribute 'default nil :height 80) -(setq notify-method 'notify-via-libnotify) -(add-to-list 'load-path "~/.emacs.d/") -(add-to-list 'load-path "~/.emacs.d/el-get/el-get") -(setq custom-file "~/.emacs.d/custom.el") - -; derived from ELPA installation -; http://tromey.com/elpa/install.html -(defun eval-url (url) - (let ((buffer (url-retrieve-synchronously url))) - (save-excursion - (set-buffer buffer) - (goto-char (point-min)) - (re-search-forward "^$" nil 'move) - (eval-region (point) (point-max)) - (kill-buffer (current-buffer))))) - - ;; ELPA stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(unless (require 'package nil t) - (eval-url "http://tromey.com/elpa/package-install.el")) - -(setq package-archives '(("ELPA" . "http://tromey.com/elpa/") - ("marmalade" . "http://marmalade-repo.org/packages/") - ("gnu" . "http://elpa.gnu.org/packages/"))) - -;; el-get stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(setq el-get-install-branch "master") ;; live life on the edge -(unless (require 'el-get nil t) - (eval-url "https://github.com/dimitri/el-get/raw/master/el-get-install.el")) - -(setq el-get-sources '( - (:name nxhtml - :type http - :url "http://ourcomments.org/Emacs/DL/elisp/nxhtml/zip/nxhtml-2.08-100425.zip" - :build ("unzip nxhtml-2.08-100425.zip") - :load "nxhtml/autostart.el") - )) - -(setq my-el-get-packages - '(el-get -; nxhtml - apel flim semi wanderlust - smarttabs - )) - -;; Now load all of that ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; ELPA -(package-initialize) -;; el-get -(when (require 'el-get nil t) (el-get 'sync my-el-get-packages)) -;; custom -(load custom-file 'noerror) - -;; General settings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;(load "mdmua") -(load "emacsutils") - -(tool-bar-mode -1) -(ido-mode t) -(show-paren-mode 1) -(setq org-hide-leading-stars t) -(setq org-log-done 'time) -;(xclip-mode 1) - -(load "whitespace") -(setq whitespace-style '( - tab-mark - space-mark - newline-mark - empty -)) - - -;; These are my preferred settings; we let dtrt-indent detect when we play with other's files -(setq-default tab-width 8) -(setq-default c-basic-offset 8) -(setq-default indent-tabs-mode t) - - -(setq - backup-by-copying t ;; don't clobber symlinks - backup-directory-alist '(("." . "~/.emacs.d/saves")) ;; don't litter my fs tree - delete-old-versions t - kept-new-versions 6 - kept-old-versions 2 - version-control t ;; use versioned backups -) - -(setq column-number-mode t - inhibit-startup-screen t - line-number-mode t - server-use-tcp t - server-mode t - show-paren-mode t) - -(setq browse-url-generic-program (executable-find "v-www-browser") - browse-url-browser-function 'browse-url-generic) - - -(defun toggle-fullscreen (&optional f) - (interactive) - (let ((current-value (frame-parameter nil 'fullscreen))) - (set-frame-parameter nil 'fullscreen - (if (equal 'fullboth current-value) - (if (boundp 'old-fullscreen) old-fullscreen nil) - (progn (setq old-fullscreen current-value) - 'fullboth))))) - -;; Custom keybindings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(global-set-key [f11] 'toggle-fullscreen) -(global-set-key "\C-cw" 'global-whitespace-mode) - -;; mode-hooks ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(add-hook 'text-mode-hook 'turn-on-auto-fill) - -; for term-mode -;; (add-hook 'after-make-frame-functions -;; (lambda (frame) -;; (set-variable 'term-default-fg-color -;; (face-foreground 'default)) -;; (set-variable 'term-default-bg-color -;; (face-background 'default))) -;; t) - -(add-hook 'lisp-mode-hook - '(lambda () - (set (make-local-variable 'indent-tabs-mode) nil) - )) - -(add-hook 'emacs-lisp-mode-hook - '(lambda () - (set (make-local-variable 'indent-tabs-mode) nil) - )) - -(add-hook 'coffee-mode-hook - '(lambda () - (set (make-local-variable 'tab-width) 2) - )) - -(add-hook 'term-mode-hook - '(lambda () - (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") - (make-local-variable 'mouse-yank-at-point) - ;(make-local-variable 'transient-mark-mode) - (setq mouse-yank-at-point t) - ;(setq transient-mark-mode nil) - (auto-fill-mode -1) - (setq tab-width 8 ) - (setq autopair-dont-activate t) ;; Don't let autopair break ansi-term - )) - -(add-hook 'ruby-mode-hook - '(lambda () - (set (make-local-variable 'indent-tabs-mode) t) - (set (make-local-variable 'ruby-indent-level) 4) - (set (make-local-variable 'tab-width) 4) - )) - -(add-hook 'coffee-mode-hook - '(lambda () - (set (make-local-variable 'indent-tabs-mode) nil) - )) - -(add-to-list 'auto-mode-alist '("PKGBUILD" . sh-mode)) - -;(require 'flymake) -;(add-hook 'php-mode-hook (lambda() (flymake-mode 1))) -;(define-key php-mode-map '[M-S-up] 'flymake-goto-prev-error) -;(define-key php-mode-map '[M-S-down] 'flymake-goto-next-error) - -;(setq tramp-debug-buffer t) -;(setq tramp-verbose 10) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(asm-comment-char 35)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) diff --git a/.local.sun4u/bin/grep b/.local.sun4u/bin/grep new file mode 100755 index 0000000..481a7a9 --- /dev/null +++ b/.local.sun4u/bin/grep @@ -0,0 +1,2 @@ +#/bin/bash +ggrep "$@" diff --git a/.local.sun4u/bin/sed b/.local.sun4u/bin/sed new file mode 100755 index 0000000..3707eb6 --- /dev/null +++ b/.local.sun4u/bin/sed @@ -0,0 +1,2 @@ +#/bin/bash +gsed "$@" @@ -0,0 +1,6 @@ +# this file is processed only when csh is running as a login (top-level) shell +# and should contain commands to be run once per session, e.g. setting +# environment variables and terminal-specific settings + +setenv EDITOR vi +setenv PAGER less diff --git a/.login-daemons b/.login-daemons index bf8cf21..1da7aa7 100644 --- a/.login-daemons +++ b/.login-daemons @@ -1,10 +1,6 @@ #!/bin/sh if [ -x "`which daemon`" ]; then - daemon maildirproc - daemon gpg-agent --daemon --write-env-file "${HOME}/.gnupg/agent-info" - daemon batterymon 20 " - alsactl restore --file $HOME/.full.asound; - espeak 'PLUG ME IN'; - sleep .2;" + # daemon ... + : fi @@ -45,23 +45,11 @@ _JAVA_OPTIONS+=' -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' _JAVA_OPTIONS+=" -Djava.io.tmpdir=$TMPDIR" export _JAVA_OPTIONS -# ALSA -if [ -x "`which alsactl 2>/dev/null`" ]; then - alsactl restore "$HOME/.current.asound" &> /dev/null || true -fi - # X11 if [ -z "$XAUTHORITY" ]; then export XAUTHORITY=$HOME/.Xauthority fi -# D-Bus -if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then - eval `dbus-launch` - export DBUS_SESSION_BUS_ADDRESS - export DBUS_SESSION_BUS_PID -fi - # Start background programs ########################################## if [ -f "$HOME/.login-daemons" ]; then . "$HOME/.login-daemons" @@ -74,3 +62,6 @@ if [ -n "$BASH_VERSION" ]; then . "$HOME/.bashrc" fi fi + +export PERL5LIB=/homes/shumakl/.prefix.x86_64/lib64/perl5:$PERL5LIB +export GOROOT=/homes/shumakl/.prefix.x86_64/go |