Simplify EXWM init hook
Anytime something before or during window-manager.el fails to evaluate, I lose the ability to type, but I *can* still click. @tazjin recommended that I use the mouse to cycle to the *Warnings* buffer, which led me to another bug in a series of bugs that I'm uncovering: ~/briefcase/org didn't exist. A simple mistake like this should break my WM startup, so I decided to remove most of my init hook logic.
This commit is contained in:
		
							parent
							
								
									c9da7c5214
								
							
						
					
					
						commit
						4d8ce34a7e
					
				
					 1 changed files with 1 additions and 31 deletions
				
			
		|  | @ -392,37 +392,7 @@ This function asssumes that BUFFER passes the `exwm/exwm-buffer?' predicate." | ||||||
| ;; Startup Applications in `exwm/named-workspaces' | ;; Startup Applications in `exwm/named-workspaces' | ||||||
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||||||
| 
 | 
 | ||||||
| (add-hook | (add-hook 'exwm-init-hook (lambda () (exwm/switch "Briefcase"))) | ||||||
|  'exwm-init-hook |  | ||||||
|  (lambda () |  | ||||||
|    ;; TODO: Refactor this into a bigger solution where the named-workspaces are |  | ||||||
|    ;; coupled to their startup commands. Expedience wins this time. |  | ||||||
|    (progn |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      ;; Web surfing |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      (progn |  | ||||||
|        (exwm/switch "Web surfing")) |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      ;; Briefcase |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      (progn |  | ||||||
|        (exwm/switch "Briefcase")) |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      ;; Todos |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      (progn |  | ||||||
|        (exwm/switch "Todos") |  | ||||||
|        (org-helpers/find-file "today-expected.org")) |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      ;; Chatter |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      (progn |  | ||||||
|        (exwm/switch "Chatter")) |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      ;; Reset to default |  | ||||||
|      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |  | ||||||
|      (exwm/switch "Briefcase")))) |  | ||||||
| 
 | 
 | ||||||
| (provide 'window-manager) | (provide 'window-manager) | ||||||
| ;;; window-manager.el ends here | ;;; window-manager.el ends here | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue