From 924ad65d13245a0778e2f30b21489d60d4f2901a Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 19 Feb 2023 14:02:19 +0100 Subject: [PATCH] Emacs & leftwm stuff --- emacs/.config/emacs/config.el | 2 +- emacs/.config/emacs/init.el | 10 ++++++++-- emacs/.config/emacs/places | 5 +++++ leftwm/.config/leftwm/config.ron | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 emacs/.config/emacs/places diff --git a/emacs/.config/emacs/config.el b/emacs/.config/emacs/config.el index e29b50a..0166a9c 100644 --- a/emacs/.config/emacs/config.el +++ b/emacs/.config/emacs/config.el @@ -9,7 +9,7 @@ (set-face-attribute 'default nil :height 140 :family "Fira Code") ;; Enable line numbers -(global-display-line-numbers-mode 1) +(global-display-line-numbers-mode -1) ;; Indentaion (setq diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index 3942094..b739955 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -37,7 +37,7 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-safe-themes - '("e1f4f0158cd5a01a9d96f1f7cdcca8d6724d7d33267623cc433fe1c196848554" "da75eceab6bea9298e04ce5b4b07349f8c02da305734f7c0c8c6af7b5eaa9738" "2dd4951e967990396142ec54d376cced3f135810b2b69920e77103e0bcedfba9" "e3daa8f18440301f3e54f2093fe15f4fe951986a8628e98dcd781efbec7a46f2" "7a424478cb77a96af2c0f50cfb4e2a88647b3ccca225f8c650ed45b7f50d9525" "02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "a44e2d1636a0114c5e407a748841f6723ed442dc3a0ed086542dc71b92a87aee" "7e377879cbd60c66b88e51fad480b3ab18d60847f31c435f15f5df18bdb18184" default)) + '("aec7b55f2a13307a55517fdf08438863d694550565dee23181d2ebd973ebd6b8" "251ed7ecd97af314cd77b07359a09da12dcd97be35e3ab761d4a92d8d8cf9a71" "631c52620e2953e744f2b56d102eae503017047fb43d65ce028e88ef5846ea3b" "6945dadc749ac5cbd47012cad836f92aea9ebec9f504d32fe89a956260773ca4" "636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561" "467dc6fdebcf92f4d3e2a2016145ba15841987c71fbe675dcfe34ac47ffb9195" "e1f4f0158cd5a01a9d96f1f7cdcca8d6724d7d33267623cc433fe1c196848554" "da75eceab6bea9298e04ce5b4b07349f8c02da305734f7c0c8c6af7b5eaa9738" "2dd4951e967990396142ec54d376cced3f135810b2b69920e77103e0bcedfba9" "e3daa8f18440301f3e54f2093fe15f4fe951986a8628e98dcd781efbec7a46f2" "7a424478cb77a96af2c0f50cfb4e2a88647b3ccca225f8c650ed45b7f50d9525" "02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "a44e2d1636a0114c5e407a748841f6723ed442dc3a0ed086542dc71b92a87aee" "7e377879cbd60c66b88e51fad480b3ab18d60847f31c435f15f5df18bdb18184" default)) '(elcord-display-buffer-details nil) '(elcord-display-elapsed t) '(elcord-editor-icon "emacs_material_icon") @@ -128,7 +128,7 @@ (evil-commentary-mode) ;; HL TODO FIXME DEBUG STUB NOTE BUG -(hl-todo-mode) +(global-hl-todo-mode 1) ;; Formatter (format-all) (global-set-key (kbd "M-g") 'format-all-buffer) @@ -154,3 +154,9 @@ ("\\.tsx\\'" . web-mode) ("\\.html\\'" . web-mode)) :commands web-mode) + +(global-hl-line-mode 1) +(save-place-mode 1) +(setq use-dialog-box nil) + +(global-auto-revert-mode 1) diff --git a/emacs/.config/emacs/places b/emacs/.config/emacs/places new file mode 100644 index 0000000..c15a5a0 --- /dev/null +++ b/emacs/.config/emacs/places @@ -0,0 +1,5 @@ +;;; -*- coding: utf-8; mode: lisp-data -*- +(("/home/elal/.dotfiles/emacs/.config/emacs/init.el" . 6165) + ("/home/elal/.dotfiles/emacs/.config/emacs/config.el" . 133) + ("/home/elal/Projects/school/cth/courses/mop/libmd407/md407/gfx.h" . 838) + ("/home/elal/.config/emacs/.cache/treemacs-persist" . 47)) diff --git a/leftwm/.config/leftwm/config.ron b/leftwm/.config/leftwm/config.ron index 7bec0df..356be92 100644 --- a/leftwm/.config/leftwm/config.ron +++ b/leftwm/.config/leftwm/config.ron @@ -72,7 +72,8 @@ (command: Execute, value: "rofi -show drun", modifier: ["modkey"], key: "d"), (command: Execute, value: "rofi -show ssh", modifier: ["modkey"], key: "s"), (command: Execute, value: "alacritty", modifier: ["modkey"], key: "Return"), - (command: Execute, value: "firefox", modifier: ["modkey"], key: "b"), + (command: Execute, value: "firefox", modifier: ["modkey"], key: "b"), // + (command: Execute, value: "playerctl play-pause", modifier: ["modkey"], key: "u"), (command: CloseWindow, value: "", modifier: ["modkey", "Shift"], key: "q"), (command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "x"), // (command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),