Update regexp used with evil-mode's * and # KBDs
I'd bet that there is a better way to achieve this, but I couldn't find it, and I need this experience to be better.
This commit is contained in:
		
							parent
							
								
									4c1fbe01f6
								
							
						
					
					
						commit
						c492c8f4bf
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,15 @@
 | 
			
		|||
  (setq evil-want-integration nil)
 | 
			
		||||
  (general-evil-setup)
 | 
			
		||||
  :config
 | 
			
		||||
  ;; ensure [_-] are part of \w character set
 | 
			
		||||
  ;; Note: there must be a better way to accomplish this.
 | 
			
		||||
  (progn
 | 
			
		||||
    ;; underscore
 | 
			
		||||
    (modify-syntax-entry ?_ "w" sh-mode-syntax-table)
 | 
			
		||||
 | 
			
		||||
    ;; dash
 | 
			
		||||
    (modify-syntax-entry ?- "w" sh-mode-syntax-table)
 | 
			
		||||
    (modify-syntax-entry ?- "w" emacs-lisp-mode-syntax-table))
 | 
			
		||||
  (general-mmap
 | 
			
		||||
    :keymaps 'override
 | 
			
		||||
    "RET" #'evil-goto-line
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue