Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.42 KB | None | 0 0
  1. ; Hit F1 for the man page of the current cursor position (shell-mode)
  2. (add-hook
  3.  'sh-mode-hook
  4.  '(lambda()
  5.    (local-set-key [(f1)] (lambda () (interactive) (manual-entry (current-word))))
  6.  )
  7. )
  8. ;; Hit F1 to jump to .h/.cpp file (c-common mode)
  9. (add-hook
  10.  'c-mode-common-hook
  11.  (lambda()
  12.     (local-set-key [(f1)] 'ff-find-other-file)
  13.   )
  14. )
  15. ;; Remap command key to alt (MacOs))
  16. (setq mac-command-modifier 'control)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement