commit e2118b43554e78598a71a65bafc20485b758cd7d
parent 65e880725b3751a8c25cd432c44803594515ddb6
Author: Ethan Long <ethandavidlong@gmail.com>
Date: Sat, 17 Aug 2024 01:09:38 +1000
Woops
Diffstat:
| M | config.org | | | 80 | ++++++++++++++++++++++++++++++++++++++++---------------------------------------- |
1 file changed, 40 insertions(+), 40 deletions(-)
diff --git a/config.org b/config.org
@@ -191,46 +191,46 @@ Some configuration for the LaTeX that appears in Org mode. We want to make sure
* General Emacs/Editor settings
We can use ~use-package~ to configure emacs at startup. On MacOS we leave things mostly default because emacs-mac doesn't look fugly, but on Linux we might as well get rid of all the clutter. Also we use spaces not tabs, begone tabs.
#+begin_src emacs-lisp
- ;; Emacs init config
- (use-package emacs
- :ensure nil
- :hook
- (prog-mode . display-line-numbers-mode)
- (display-line-numbers-mode . ethandl/line-nums-cfg)
- (before-save . ethandl/before-save-hook)
- (find-file . ethandl/define-indents)
- :init
- (ethandl/set-fonts code-font) ;; Set fonts
- ;; Get rid of default crud
- (setq inhibit-startup-screen t)
- (menu-bar-mode 1)
- (tool-bar-mode 1)
- (when (fboundp 'scroll-bar-mode)
- (scroll-bar-mode 0))
- ;; Note, the following two are already set in early_init.el,
- ;; so the initial frame has good resizing
- (setq frame-resize-pixelwise t)
- (setq window-resize-pixelwise t)
- ;; Modeline
- (line-number-mode 1) ;; Line no.
- (column-number-mode 1) ;; Col. no.
- ;; Indentation
- (setq-default indent-tabs-mode nil)
- (setq-default tab-width 4)
- (setq-default evil-shift-width tab-width)
- (setq ring-bell-function 'ignore) ;; Get rid of the bell
- ;; Fuck Control+Scroll to zoom, that's terrible and seems to be bound by something in emacs-plus?
- (global-unset-key (kbd "<C-wheel-up>"))
- (global-unset-key (kbd "<C-wheel-down>"))
- ;; Autosave files need to piss off
- (setq backup-directory-alist
- `((".*" . ,temporary-file-directory)))
- (setq auto-save-file-name-transforms
- `((".*" ,temporary-file-directory t)))
- ;; Ensure that the command key is the emacs meta key
- (when (eq system-type 'darwin)
- (setq mac-option-modifier nil
- mac-command-modifier 'meta)))
+ ;; Emacs init config
+ (use-package emacs
+ :ensure nil
+ :hook
+ (prog-mode . display-line-numbers-mode)
+ (display-line-numbers-mode . ethandl/line-nums-cfg)
+ (before-save . ethandl/before-save-hook)
+ (find-file . ethandl/define-indents)
+ :init
+ (ethandl/set-fonts code-font) ;; Set fonts
+ ;; Get rid of default crud
+ (setq inhibit-startup-screen t)
+ (menu-bar-mode 1)
+ (tool-bar-mode 1)
+ (when (fboundp 'scroll-bar-mode)
+ (scroll-bar-mode 0))
+ ;; Note, the following two are already set in early_init.el,
+ ;; so the initial frame has good resizing
+ (setq frame-resize-pixelwise t)
+ (setq window-resize-pixelwise t)
+ ;; Modeline
+ (line-number-mode 1) ;; Line no.
+ (column-number-mode 1) ;; Col. no.
+ ;; Indentation
+ (setq-default indent-tabs-mode nil)
+ (setq-default tab-width 4)
+ (setq-default evil-shift-width tab-width)
+ (setq ring-bell-function 'ignore) ;; Get rid of the bell
+ ;; Fuck Control+Scroll to zoom, that's terrible and seems to be bound by something in emacs-plus?
+ (global-unset-key (kbd "<C-wheel-up>"))
+ (global-unset-key (kbd "<C-wheel-down>"))
+ ;; Autosave files need to piss off
+ (setq backup-directory-alist
+ `((".*" . ,temporary-file-directory)))
+ (setq auto-save-file-name-transforms
+ `((".*" ,temporary-file-directory t)))
+ ;; Ensure that the command key is the emacs meta key
+ (when (eq system-type 'darwin)
+ (setq mac-option-modifier nil
+ mac-command-modifier 'meta)))
#+end_src
* Packages
** Ivy and Counsel (Better Text Navigation)