To make Emacs recognize cuda (.cu) files in c++ mode
Much simpler to just put following in your .emacs file:
(add-to-list 'auto-mode-alist '("\\.cu$" . c++-mode))
Or alternatively, on a per .cu file basis, you could say just put following in the first line of your .cu files:
// -*- c++ -*-
No comments:
Post a Comment