Fixed issue with file opening shortcuts generation
This commit is contained in:
		
							parent
							
								
									fc9cfd3a3c
								
							
						
					
					
						commit
						21cbd9d368
					
				| @ -3322,7 +3322,7 @@ | |||||||
|     *The following code is not tangled into my Spacemacs config.* However, it is |     *The following code is not tangled into my Spacemacs config.* However, it is | ||||||
|     used to generate shortcuts and configuration code from the above table: |     used to generate shortcuts and configuration code from the above table: | ||||||
|     #+NAME: shortcuts-gen |     #+NAME: shortcuts-gen | ||||||
|     #+BEGIN_SRC emacs-lisp :tangle no :noweb yes :var table=private-files-open-shortcuts :exports code :cache yes :results replace |     #+BEGIN_SRC emacs-lisp :tangle no :noweb yes :var table=private-files-open-shortcuts :exports code :results replace | ||||||
|       (concat (mapconcat (lambda (x) |       (concat (mapconcat (lambda (x) | ||||||
|                            (let* ((shortcut (nth 0 x)) |                            (let* ((shortcut (nth 0 x)) | ||||||
|                                   (name (nth 1 x))) |                                   (name (nth 1 x))) | ||||||
| @ -3340,7 +3340,7 @@ | |||||||
|                                           (file (nth 2 x))) |                                           (file (nth 2 x))) | ||||||
|                                      (if (string= "" file) |                                      (if (string= "" file) | ||||||
|                                          (format "\t\;\; %s" name) |                                          (format "\t\;\; %s" name) | ||||||
|                                        (format "\t%s (lambda () (interactive) (find-file \"%s\"))" |                                        (format "\t\"%s\" (lambda () (interactive) (find-file \"%s\"))" | ||||||
|                                                shortcut file)))) |                                                shortcut file)))) | ||||||
|                                  table |                                  table | ||||||
|                                  "\n"))) |                                  "\n"))) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user