forked from colonelpanic/dotfiles
		
	Move emacs version predicate to top of file for use in use-pacakge statements.
This commit is contained in:
		
							
								
								
									
										10
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								init.el
									
									
									
									
									
								
							| @@ -13,6 +13,11 @@ | |||||||
|       (replace-regexp-in-string "\n$" "" (shell-command-to-string |       (replace-regexp-in-string "\n$" "" (shell-command-to-string | ||||||
|                                           "git config --get user.name"))) |                                           "git config --get user.name"))) | ||||||
|  |  | ||||||
|  | (defun emacs24_4-p () | ||||||
|  |   (or (and (>= emacs-major-version 24) | ||||||
|  |            (>= emacs-minor-version 4)) | ||||||
|  |       (>= emacs-major-version 25))) | ||||||
|  |  | ||||||
| ;; ============================================================================= | ;; ============================================================================= | ||||||
| ;;                                                                  GUI Disables | ;;                                                                  GUI Disables | ||||||
| ;; ============================================================================= | ;; ============================================================================= | ||||||
| @@ -495,11 +500,6 @@ | |||||||
| ;;                                                                     functions | ;;                                                                     functions | ||||||
| ;; ============================================================================= | ;; ============================================================================= | ||||||
|  |  | ||||||
| (defun emacs24_4-p () |  | ||||||
|   (or (and (>= emacs-major-version 24) |  | ||||||
|            (>= emacs-minor-version 4)) |  | ||||||
|       (>= emacs-major-version 25))) |  | ||||||
|  |  | ||||||
| (defun sudo-edit (&optional arg) | (defun sudo-edit (&optional arg) | ||||||
|   "Edit currently visited file as root. |   "Edit currently visited file as root. | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user