mirror of
				https://github.com/larstvei/dot-emacs.git
				synced 2025-11-04 01:20:11 +00:00 
			
		
		
		
	Add processing mode
This commit is contained in:
		
							parent
							
								
									b196ac0bfd
								
							
						
					
					
						commit
						56f6827eb3
					
				
							
								
								
									
										15
									
								
								init.org
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								init.org
									
									
									
									
									
								
							@ -1956,6 +1956,21 @@
 | 
			
		||||
 | 
			
		||||
   #+end_src
 | 
			
		||||
 | 
			
		||||
** Processing
 | 
			
		||||
 | 
			
		||||
   Processing is essentially Java, so using ~java-ts-mode~ seems like a good fit.
 | 
			
		||||
 | 
			
		||||
   #+begin_src emacs-lisp
 | 
			
		||||
 | 
			
		||||
   (define-derived-mode processing-mode
 | 
			
		||||
     java-ts-mode "Processing"
 | 
			
		||||
     "Major mode for Processing"
 | 
			
		||||
     (setq-local java-ts-mode-indent-offset 2))
 | 
			
		||||
 | 
			
		||||
   (add-to-list 'auto-mode-alist '("\\.pde\\'" . processing-mode))
 | 
			
		||||
 | 
			
		||||
   #+end_src
 | 
			
		||||
 | 
			
		||||
* Which key
 | 
			
		||||
 | 
			
		||||
  [[https://github.com/justbur/emacs-which-key][Which key]] is nice for discoverability.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user