mirror of
				https://github.com/larstvei/Focus.git
				synced 2025-11-04 02:00:11 +00:00 
			
		
		
		
	Binding for enabling focus-read-only-mode in focus-mode
This commit is contained in:
		
							parent
							
								
									d1bd81ee4d
								
							
						
					
					
						commit
						27eda82b95
					
				
							
								
								
									
										3
									
								
								focus.el
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								focus.el
									
									
									
									
									
								
							@ -205,6 +205,9 @@ This is added to the `pre-command-hook' when
 | 
				
			|||||||
(define-minor-mode focus-mode
 | 
					(define-minor-mode focus-mode
 | 
				
			||||||
  "Dim the font color of text in surrounding sections."
 | 
					  "Dim the font color of text in surrounding sections."
 | 
				
			||||||
  :init-value nil
 | 
					  :init-value nil
 | 
				
			||||||
 | 
					  :keymap (let ((map (make-sparse-keymap)))
 | 
				
			||||||
 | 
					            (define-key map (kbd "C-c C-q") 'focus-read-only-mode)
 | 
				
			||||||
 | 
					            map)
 | 
				
			||||||
  (if focus-mode (focus-init) (focus-terminate)))
 | 
					  (if focus-mode (focus-init) (focus-terminate)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;;;###autoload
 | 
					;;;###autoload
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user