Skip to content

Commit

Permalink
Testing out on Windows. Some refinements.
Browse files Browse the repository at this point in the history
  • Loading branch information
dysmento committed Sep 11, 2022
1 parent 12cc858 commit 621850b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ archive-contents
.cache
recentf
transient
network-security.data
3 changes: 1 addition & 2 deletions customizations/editing.el
Expand Up @@ -28,8 +28,7 @@
;; When you visit a file, point goes to the last place where it
;; was when you previously visited the same file.
;; http://www.emacswiki.org/emacs/SavePlace
(require 'saveplace)
(setq-default save-place t)
(save-place-mode 1)
;; keep track of saved places in ~/.emacs.d/places
(setq save-place-file (concat user-emacs-directory "places"))

Expand Down
2 changes: 2 additions & 0 deletions customizations/elisp-editing.el
@@ -1,3 +1,5 @@
;; paredit enables structural editing of just about any lisp
;; https://www.emacswiki.org/emacs/ParEdit
(setup (:package paredit)
(:hook-into emacs-lisp-mode
eval-expression-minibuffer-setup
Expand Down
1 change: 1 addition & 0 deletions customizations/filetree.el
Expand Up @@ -2,4 +2,5 @@
;; https://github.com/Alexander-Miller/treemacs
(setup (:package treemacs treemacs-projectile treemacs-magit)
(:global "M-0" treemacs-select-window
"M-o" ace-window ;; treemacs brings ace-window as a dependency
"s-b" treemacs))
4 changes: 2 additions & 2 deletions customizations/setup-org.el
Expand Up @@ -3,9 +3,9 @@
;; notes, plans, ideas, articles, etc. But it goes way beyond that,
;; including calendar features, executable code blocks, task statuses,
;; and even a pomodoro timer!
;; See https://orgmode.org/ for _tons_ of information
;; See https://orgmode.org/ for /tons/ of information
;; All of the beautifying configuration comes from https://zzamboni.org/post/beautifying-org-mode-in-emacs/
;; Tip of the had to Diego Zamboni for that.
;; Tip of the hat to Diego Zamboni for that.
(defun efc/org-font-setup ()
;; Replace list hyphen with dot
(font-lock-add-keywords 'org-mode
Expand Down
4 changes: 2 additions & 2 deletions customizations/shell-integration.el
@@ -1,6 +1,6 @@
;; Sets up exec-path-from shell
;; https://github.com/purcell/exec-path-from-shell
(setup
(when (memq window-system '(mac ns)))
(when (memq window-system '(mac ns))
(:package exec-path-from-shell)
(exec-path-from-shell-initialize))
(exec-path-from-shell-initialize)))
10 changes: 6 additions & 4 deletions customizations/ui.el
Expand Up @@ -17,8 +17,8 @@
(setq-default frame-title-format "%b (%f)")

;; initial frame height and width
(add-to-list 'default-frame-alist '(height . 95))
(add-to-list 'default-frame-alist '(width . 154))
(add-to-list 'default-frame-alist '(height . 45))
(add-to-list 'default-frame-alist '(width . 100))

;; increase font size for better readability
(set-face-attribute 'default nil :height 140)
Expand All @@ -34,8 +34,10 @@
;; doom-modeline uses nice icons from all-the-icons
(setup (:package all-the-icons))

(setup (:package doom-modeline)
(doom-modeline-mode t))
;; for some reason, this crashes Emacs on Windows. Argh!
(setup (when (not (string-equal system-type "windows-nt"))
(:package doom-modeline)
(doom-modeline-mode t)))

;; Lots of great themes, both light ones
;; and dark ones. Use M-x load-theme to select one.
Expand Down
4 changes: 2 additions & 2 deletions init.el
Expand Up @@ -27,14 +27,14 @@
'("ui.el"
"navigation.el"
"projects.el"
"git.el"
"filetree.el"
"editing.el"
"elisp-editing.el"
"setup-clojure.el"
"setup-js.el"
"setup-org.el"
"shell-integration.el"
"git.el"))
"shell-integration.el"))

(dolist (x addons)
(load x))
Expand Down

0 comments on commit 621850b

Please sign in to comment.