some keybindings for org and better wayland emacs

This commit is contained in:
Chris Cochrun 2021-08-24 13:12:37 -05:00
parent f9454c847b
commit 40ad9fe1c1
2 changed files with 14 additions and 21 deletions

View file

@ -103,11 +103,12 @@ In order to have this config work on both my desktop with regular joe-schmoe mon
(defun chris/set-transparency ()
"Set the frame to be transparent on Wayland compositors"
(if (string-search "wayland" x-display-name)
((set-frame-parameter (selected-frame) 'alpha '(100 . 100))
'((set-frame-parameter (selected-frame) 'alpha '(100 . 100))
(set-frame-parameter (selected-frame) 'undecorated t)
(add-to-list 'default-frame-alist '(undecorated . t))
(add-to-list 'default-frame-alist '(alpha . (100 . 100)))
(add-to-list 'initial-frame-alist '(alpha . (100 . 100))))))
(add-to-list 'initial-frame-alist '(alpha . (100 . 100)))
(add-to-list 'initial-frame-alist '(undecorated . t)))))
(if (daemonp)
(add-hook 'after-make-frame-functions
@ -1204,7 +1205,10 @@ Part of this config includes some special capture templates for my work as a you
"RET" 'chris/org-dwim-at-point
"gC" 'chris/org-columns-view
"ge" 'org-edit-src-code
"t" 'org-todo)
"t" 'org-todo
"C-i" 'completion-at-point)
('insert org-mode-map
"C-i" 'completion-at-point)
('normal 'org-src-mode-map
"q" 'org-edit-src-abort))
#+end_src