2 added 24 characters in body
source | link

You could add hook into init.el

(add-hook 'find-file-hook
          (lambda ()
            (ifwhen (string= major-mode "c-mode")
              (recompile))))

for c-mode to recompile it automatically when you'll find-file.

You could add hook into init.el

(add-hook 'find-file-hook
      (lambda () (if (string= major-mode "c-mode")
             (recompile))))

for c-mode to recompile it automatically when you'll find-file.

You could add hook into init.el

(add-hook 'find-file-hook
          (lambda ()
            (when (string= major-mode "c-mode")
              (recompile))))

for c-mode to recompile it automatically when you'll find-file.

1
source | link

You could add hook into init.el

(add-hook 'find-file-hook
      (lambda () (if (string= major-mode "c-mode")
             (recompile))))

for c-mode to recompile it automatically when you'll find-file.