forked from colonelpanic/dotfiles
		
	imalison:console-log-unique
This commit is contained in:
		| @@ -1678,6 +1678,13 @@ window is active in the perspective." | |||||||
|   (("C-c b" . web-beautify-js)) |   (("C-c b" . web-beautify-js)) | ||||||
|   :init |   :init | ||||||
|   (progn |   (progn | ||||||
|  |     (setq imalison:identifier-count 0) | ||||||
|  |     (defun imalison:console-log-unique () | ||||||
|  |       (interactive) | ||||||
|  |       (let* ((string-identifier (int-to-string imalison:identifier-count)) | ||||||
|  |              (identifier-string (cl-loop for i from 0 to 30 concat string-identifier))) | ||||||
|  |       (insert (format "console.log('//////////%s//////////')" identifier-string)) | ||||||
|  |       (setq imalison:identifier-count (+ imalison:identifier-count 1)))) | ||||||
|     (setq js2-bounce-indent-p nil |     (setq js2-bounce-indent-p nil | ||||||
|           js2-basic-offset 4 |           js2-basic-offset 4 | ||||||
|           js2-indent-level 4 |           js2-indent-level 4 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user