diff options
author | William Carroll <wpcarro@gmail.com> | 2018-10-02T13·57-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2018-10-02T13·57-0400 |
commit | 0c012554b9e81dde34621d7f37e54f2ecce685a6 (patch) | |
tree | a9832adf488fa23896ec955d531a2f6289e53710 /configs | |
parent | 9ed59566eb75f2285d965815d9b17bec34287d23 (diff) |
Updates to Emacs preferences
- Prefers "$HOME" to "~/urbint" for current project - Prefers dark colorscheme - Allows source-jumping to Emacs (nixify this to remove dep on path/to/source)
Diffstat (limited to 'configs')
4 files changed, 13 insertions, 2 deletions
diff --git a/configs/shared/emacs/.emacs.d/snippets/c-mode/struct b/configs/shared/emacs/.emacs.d/snippets/c-mode/struct new file mode 100644 index 000000000000..6e9282f83c79 --- /dev/null +++ b/configs/shared/emacs/.emacs.d/snippets/c-mode/struct @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: struct +# key: struct +# -- +typedef struct $1 { + $2 +} $1_t; \ No newline at end of file diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el index 533de61f9540..aff2034645d8 100644 --- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el +++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el @@ -16,6 +16,9 @@ ;; transparently edit compressed files (auto-compression-mode t) +;; link to Emacs source code +(setq find-function-C-source-directory "~/programming/emacs/src") + ;; change emacs prompts from "yes or no" -> "y or n" (fset 'yes-or-no-p 'y-or-n-p) @@ -31,6 +34,7 @@ ;; create file bookmarks (set-register ?e '(file . "~/.emacs.d/wpc/packages")) +(set-register ?n '(file . "~/programming/nixify/darwin-configuration.nix")) (set-register ?u '(file . "~/urbint")) (set-register ?d '(file . "~/dotfiles")) (set-register ?s '(file . "~/.slate.js")) diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-ui.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-ui.el index 87705cd6c61f..03899e61ba2b 100644 --- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-ui.el +++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-ui.el @@ -95,7 +95,7 @@ :config (setq doom-themes-enable-bold t doom-themes-enable-italic t) - (load-theme 'doom-one-light t) + (load-theme 'doom-one t) (doom-themes-visual-bell-config) (doom-themes-org-config)) diff --git a/configs/shared/emacs/.emacs.d/wpc/variables.el b/configs/shared/emacs/.emacs.d/wpc/variables.el index d0bba261593d..1a7a0ef742d1 100644 --- a/configs/shared/emacs/.emacs.d/wpc/variables.el +++ b/configs/shared/emacs/.emacs.d/wpc/variables.el @@ -7,7 +7,7 @@ ;;; Code: (defconst wpc/current-project - "~/urbint/grid/" + "~/" "Variable holding the directory for my currently active project.") (defvar wpc/mouse-kbds |