+;; ;; disabled because after 2024 update this keeps recompiling on every
+;; ;; startup and leaving open compile windows.
+;; ;; todo: move functions into separate byte compiled file, per:
+;; ;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html
+;; ;; If your init file defines many functions, consider moving them to
+;; ;; a separate (byte-compiled) file that you load in your init file.
+;;
;; 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
- (byte-recompile-file (expand-file-name "init.el" init-dir) nil 0)
- (when (file-exists-p "/p/c/mymu4e.el")
- (byte-recompile-file "/p/c/mymu4e.el" nil 0))
- )
+;; (unless (equal (user-uid) 0) ; don't make root owned files
+;; (byte-recompile-file (expand-file-name "init.el" init-dir) nil 0)
+;; (when (file-exists-p "/p/c/mymu4e.el")
+;; (byte-recompile-file "/p/c/mymu4e.el" nil 0))
+;; )
;;; misc emacs documentation
;; find file at point
(use-package ffap)
+;; used in system-status finding unsaved buffers.
+(use-package dash)
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)
+ erc-modules '(autojoin button completion imenu irccontrols list match menu
+ move-to-prompt netsplit networks readonly ring stamp track)
;; expanded from https://www.emacswiki.org/emacs/ErcChannelTracking,
;; ignore various messages
erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE"
(global-set-key (kbd "C-(") 'run)
;; make compile work from the gtags root dir
-(defadvice compile (before pre-compile-advice activate)
- (basic-save-buffer)
- (when (set-p ggtags-project-root)
- (setq-local compile-saved-dir default-directory)
- (setq default-directory ggtags-project-root)))
-(defadvice compile (after post-compile-advice activate)
- (when (bound-and-true-p compile-saved-dir)
- (setq default-directory compile-saved-dir)))
+;; (defadvice compile (before pre-compile-advice activate)
+;; (basic-save-buffer)
+;; (when (set-p ggtags-project-root)
+;; (setq-local compile-saved-dir default-directory)
+;; (setq default-directory ggtags-project-root)))
+;; (defadvice compile (after post-compile-advice activate)
+;; (when (bound-and-true-p compile-saved-dir)
+;; (setq default-directory compile-saved-dir)))
(add-hook 'c-mode-hook (lambda () (define-key c-mode-map (kbd "C-(") 'compile)))
;; I did a grep of the emacs sources, but couldn't find anything.
;; (define-key universal-argument-map [?9 nil)
-;;;;; C-M-9 - end server edit
+;;;;; C-M-8 - end server edit
;; save & kill buffer if it was opened externally via emacsclient
(interactive)
(save-buffer)
(server-edit))
-(global-set-key (kbd "C-M-9") 'server-edit-save)
+;; this was c-m-9, but I have a laptop where
+;; that key does nothing. seems like an n-key limitation.
+(global-set-key (kbd "C-M-8") 'server-edit-save)
;;;;; C-u - universal-argument
;;;;; C-M-u - search-keybind