Skip to content

Commit

Permalink
viva la Windows Subsystem for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
JJPandari committed Apr 22, 2019
1 parent 71bb1d6 commit d872e87
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
;; (require 'init-docker)
;; ;; (maybe-require-package 'nginx-mode)
(require 'init-lua)
(require 'init-ahk)
(require 'init-dotenv)

(require 'init-paredit)
Expand Down
4 changes: 4 additions & 0 deletions modes/init-ahk.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(use-package ahk-mode
:mode "\\.ahk\\'")

(provide 'init-ahk)
2 changes: 1 addition & 1 deletion modes/init-chinese.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
pyim-page-tooltip (if window-system 'posframe 'popup)
pyim-page-length 5)
:bind
(("M-l" . pyim-convert-code-at-point)
(("M-l" . pyim-convert-string-at-point)
;; ("C-;" . pyim-delete-word-from-personal-buffer)
))

Expand Down
6 changes: 4 additions & 2 deletions modes/init-face.el
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@
(defvar jester-small-font-size
(pcase window-system
('mac 150)
('w32 140))
('w32 140)
('x 140))
"small font size depending on system.")
(defvar jester-large-font-size
(pcase window-system
('mac 160)
('w32 150))
('w32 150)
('x 150))
"large font size depending on system.")

(defun jester/use-small-font ()
Expand Down
14 changes: 11 additions & 3 deletions modes/init-gui-frames.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
(setq frame-title-format "看,灰机! ✈✈✈✈✈✈✈✈✈"
frame-resize-pixelwise t)
(set-frame-parameter nil 'undecorated t)
;; (set-frame-parameter nil 'fullscreen (cond ((eq window-system 'x) 'fullboth)
;; ((eq window-system 'mac) 'maximized)
;; (t 'maximized)))

;; Non-zero values for `line-spacing' can mess up ansi-term and co,
;; so we zero it explicitly in those cases.
Expand All @@ -59,9 +62,14 @@
(setq line-spacing 0)))

(setq default-frame-alist
`((fullscreen . ,(cond ((eq window-system 'x) 'fullboth)
((eq window-system 'mac) 'maximized)
(t 'maximized)))))
`((fullscreen . ,(cond
;; ((eq window-system 'x) 'fullboth)
((eq window-system 'x) 'maximized) ;; wsl favours maximized
((eq window-system 'mac) 'maximized)
(t 'maximized)))
;; left & top are required on wsl to correctly position
(left . (+ 0))
(top . (+ 0))))


(provide 'init-gui-frames)
1 change: 1 addition & 0 deletions modes/init-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ typical word processor."
"t t" 'org-todo))

(use-package org-bullets
:if *is-a-mac*
:hook (org-mode . org-bullets-mode)
:config
(setq org-bullets-bullet-list '("🐳" "🐬" "🐠" "🐟" "🐤")
Expand Down

0 comments on commit d872e87

Please sign in to comment.