simpler auto-tangle
This commit is contained in:
		
							parent
							
								
									36712be141
								
							
						
					
					
						commit
						ab9378879e
					
				
					 2 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -971,8 +971,7 @@ We are also going to make our config auto-tangle. This is so helpful on saving t
 | 
			
		|||
    (let ((org-confirm-babel-evaluate nil))
 | 
			
		||||
      (org-babel-tangle))))
 | 
			
		||||
 | 
			
		||||
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'chris/org-babel-tangle-config
 | 
			
		||||
                                              :append :local)))
 | 
			
		||||
(add-hook 'after-save-hook #'chris/org-babel-tangle-config)
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
We also need to add =evil-org= to make better keybindings.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -700,8 +700,7 @@ much faster. The hope is to also make this a faster version of imenu."
 | 
			
		|||
    (let ((org-confirm-babel-evaluate nil))
 | 
			
		||||
      (org-babel-tangle))))
 | 
			
		||||
 | 
			
		||||
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'chris/org-babel-tangle-config
 | 
			
		||||
                                              :append :local)))
 | 
			
		||||
(add-hook 'after-save-hook #'chris/org-babel-tangle-config)
 | 
			
		||||
 | 
			
		||||
(use-package evil-org
 | 
			
		||||
  :ensure t
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue