refactor(functions): Use display-line-numbers instead of linum
This commit is contained in:
		
							parent
							
								
									4fabc36172
								
							
						
					
					
						commit
						91dac5f692
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -59,16 +59,16 @@ | ||||||
|   (if (file-exists-p filename) |   (if (file-exists-p filename) | ||||||
|       (load filename))) |       (load filename))) | ||||||
| 
 | 
 | ||||||
| ;; These come from magnars, he's got some awesome things. |  | ||||||
| 
 |  | ||||||
| (defun goto-line-with-feedback () | (defun goto-line-with-feedback () | ||||||
|   "Show line numbers temporarily, while prompting for the line number input" |   "Show line numbers temporarily, while prompting for the line number input" | ||||||
|   (interactive) |   (interactive) | ||||||
|   (unwind-protect |   (unwind-protect | ||||||
|       (progn |       (progn | ||||||
|         (linum-mode 1) |         (setq-local display-line-numbers t) | ||||||
|         (call-interactively 'goto-line)) |         (let ((target (read-number "Goto line: "))) | ||||||
|     (linum-mode -1))) |           (avy-push-mark) | ||||||
|  |           (goto-line target))) | ||||||
|  |     (setq-local display-line-numbers nil))) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| (defun untabify-buffer () | (defun untabify-buffer () | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue