dotfiles

Personal dotfiles.
git clone git://vcs.sapka.me/dotfiles
Log | Files | Refs | Submodules

commit a8c1432675c7b8706a5212d4163582e0fd802801
parent 5a3c3be7ea6a664d8f1b57894d62ac3d42a702c7
Author: MichaƂ M. Sapka <michal@sapka.me>
Date:   Fri,  3 Feb 2023 14:33:48 +0100

feat: IRC in Emacs. For the glory of Satan

Diffstat:
Memacs/.emacs.d/.gitignore | 6++++--
Memacs/.emacs.d/init.el | 93++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
2 files changed, 92 insertions(+), 7 deletions(-)

diff --git a/emacs/.emacs.d/.gitignore b/emacs/.emacs.d/.gitignore @@ -1,2 +1,4 @@ -auto-save-list -url +* + +!.gitignore +!init.el diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el @@ -1,6 +1,89 @@ -;; make it readable -(set-face-attribute 'default nil :height 120) -(load-theme 'tango-dark t) -(menu-bar-mode -1) -(scroll-bar-mode -1) +(prefer-coding-system 'utf-8) +(set-default-coding-systems 'utf-8) +(set-language-environment "UTF-8") + +(defvar linux-p (eq system-type 'gnu/linux) "True if using Linux, nil otherwise") +(defvar macosx-p (eq system-type 'darwin) "True if using Mac OS X, nil otherwise") +(defvar mswindows-p (eq system-type 'windows-nt) "True if using windows, nil otherwise") + +(setq require-final-newline t) + (tool-bar-mode -1) +(setq visible-bell t) + +(autoload 'notmuch "notmuch" "notmuch mail" t) + +(global-display-line-numbers-mode) + +;; Initialize package sources +(require 'package) + +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/") + ("elpa" . "https://elpa.gnu.org/packages/"))) + +(package-initialize) +(unless package-archive-contents + (package-refresh-contents)) + +;; Initialize use-package on non-Linux platforms +(unless (package-installed-p 'use-package) + (package-install 'use-package)) + +(require 'use-package) +;; Email +(use-package notmuch + :commands notmuch-hello + :bind (("C-c m" . notmuch-hello)) + ) + +;; IRC +(use-package circe) + +(setq circe-network-options + '(("AfterNET" :host "irc.afternet.org" :port (6697 . 9998) + :nick "d-s" + :tls t + :channels ("#dosgameclub") + ))) + +(setq circe-default-realname "https://michal.sapka.me" + circe-ignore-list nil + circe-server-coding-system '(utf-8 . undecided)) + +(setq lui-max-buffer-size 30000 + lui-flyspell-p t + lui-flyspell-alist '(("+linux.de" "german8") + ("." "american"))) + +;; Boring work stuff +(use-package robe) +(add-hook 'ruby-mode-hook 'robe-mode) + +(use-package git-gutter+ + :ensure git-gutter+ + :diminish git-gutter+-mode + :commands (git-gutter+-mode) + :config + (setq git-gutter+-hide-gutter nil)) +(setq-default indent-tabs-mode nil) + +(use-package org) +(setq use-package-always-ensure t) + +(use-package nov) +(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) + +(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. + '(package-selected-packages + '(circe nov notmuch git-gutter+ robe use-package))) +(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. + )