;; taken from wiegley, dunno why the t is there.
t)
-;; stuff to allow an alternate location for ~/.emacs.d
-(setq user-emacs-directory (file-name-directory user-init-file))
-(when (getenv "EHOME")
- (setenv "HOME" (getenv "EHOME")))
-
;; 2019-6-26, 1.26s
;; ; to profile init:
;; ; uncomment the following block
;; ; emacs -f benchmark-init/deactivate
-;; these need to be done before the hook in order to satisfy the byte compiler or batch mode
+(setq init-dir (file-name-directory load-file-name))
+;; these need to be done before the hook in order to satisfy the byte compiler or batch mode
(add-to-list 'load-path (concat user-emacs-directory "src/readline-complete"))
;; disabled since not used.
-(setq init-dir (file-name-directory load-file-name))
;; previously, i was doing byte-recompile-directory, but
;; now i just have one init file
(unless (equal (user-uid) 0) ; don't make root owned files
;; this fixes save error for python example code
(define-coding-system-alias 'UTF-8 'utf-8)
-;; i don't use frame titles, but if I ever do
-;; this starter kit setting is probably good
-(if window-system (setq frame-title-format '(buffer-file-name "%f" ("%b"))))
-
;;(prefer-coding-system 'utf-8-unix)
;;; mode line
;; make window title be the buffer name
-(setq frame-title-format "%b")
+(setq
+ frame-title-format "e-iak %b"
+ icon-title-format "e-iak %b"
+ )
(defun my-after-change-major-mode-hook ()
(setq mode-line-mule-info nil
erc-track-visibility 'visible
;; switch to buffer where i've been mentioned, etc instead of oldest
erc-track-switch-direction 'importance
- ;; defaults minus fill. todo: modify the list instead of specifying it explicitly in case the defaults change
- erc-modules
- '(autojoin button completion imenu irccontrols list match menu move-to-prompt netsplit networks noncommands readonly ring stamp track)
+ ;; when starting erc, open #fsfsys. otherwise it is super
+ ;; annoying to always have to manually switch buffers.
+ erc-join-hook (lambda () (when (string= (buffer-name(current-buffer)) "#fsfsys") (switch-to-buffer (current-buffer))))
+ ;; defaults minus fill. you can find defaults by searching for
+ ;; defcustom erc-modules in erc.el, or customize group erc.
+ erc-modules (remove 'fill erc-modules)
;; expanded from https://www.emacswiki.org/emacs/ErcChannelTracking,
;; ignore various messages
erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE"