diff options
| -rw-r--r-- | lisp/ravi-init-cpp.el | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/ravi-init-cpp.el b/lisp/ravi-init-cpp.el index 9880fb6..e99e132 100644 --- a/lisp/ravi-init-cpp.el +++ b/lisp/ravi-init-cpp.el @@ -307,15 +307,9 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named ;; Creates the ifndef/define/endif statements necessary for a header file (defun header-protection () (interactive) - (let ((s (kde-header-protection-definable-string))) - (save-excursion - (goto-char (point-min)) - (insert "#ifndef " s "\n#define " s "\n\n") - (goto-char (point-max)) - (insert "\n#endif\n") - ) - ) - ) + (save-excursion + (goto-char (point-min)) + (insert "#pragma once\n\n"))) (defun ravi-start-c++-header () "Start a new C++ header by inserting include guards ( see \ @@ -339,7 +333,7 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named ) (end-of-buffer) - (next-line -3) + (next-line -1) (insert "\n") (doxymacs-insert-file-comment) ) |
