Skip to content

Commit

Permalink
emacs: zig-mode, backup-files, down-/upercase
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Apr 25, 2023
1 parent afca342 commit 7a49db5
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,42 @@
org
org-bullets
paper-theme
slime))
slime
zig-mode))

(dolist (pkg my-packages)
(unless (package-installed-p pkg)
(package-install pkg)))

;;; Hidden Behavior
(setq custom-file null-device)

;; https://stackoverflow.com/questions/2680389/how-to-remove-all-files-ending-with-made-by-emacs
(setq backup-directory-alist '(("." . "~/.emacs.d/backup"))
backup-by-copying t)

(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)

;;; General Appearence
(menu-bar-mode -1)
(scroll-bar-mode -1)
(tool-bar-mode -1)

(global-linum-mode)
(setq linum-format "%3d ")

(set-face-attribute 'default nil
:family "JetBrains Mono"
:height 140)

(setq inhibit-startup-screen t)
(setq fill-column 80)
(setq make-backup-files nil)

;;; Hooks
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
(add-hook 'org-mode-hook
(lambda ()
(org-bullets-mode 1)))

;;; C
(setq c-default-style "linux")
Expand Down

0 comments on commit 7a49db5

Please sign in to comment.