{"action":"opened","issue":{"url":"https://api.github.com/repos/phillord/lentic/issues/15","labels_url":"https://api.github.com/repos/phillord/lentic/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/phillord/lentic/issues/15/comments","events_url":"https://api.github.com/repos/phillord/lentic/issues/15/events","html_url":"https://github.com/phillord/lentic/issues/15","id":57795877,"number":15,"title":"`lentic-mode-insert-file-local' use `add-file-local-variable' ?","user":{"login":"tumashu","id":67725,"avatar_url":"https://avatars.githubusercontent.com/u/67725?v=3","gravatar_id":"","url":"https://api.github.com/users/tumashu","html_url":"https://github.com/tumashu","followers_url":"https://api.github.com/users/tumashu/followers","following_url":"https://api.github.com/users/tumashu/following{/other_user}","gists_url":"https://api.github.com/users/tumashu/gists{/gist_id}","starred_url":"https://api.github.com/users/tumashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tumashu/subscriptions","organizations_url":"https://api.github.com/users/tumashu/orgs","repos_url":"https://api.github.com/users/tumashu/repos","events_url":"https://api.github.com/users/tumashu/events{/privacy}","received_events_url":"https://api.github.com/users/tumashu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-16T11:58:08Z","updated_at":"2015-02-16T11:58:08Z","closed_at":null,"body":"```\r\n(defun lentic-mode-insert-file-local (init-function)\r\n  (interactive\r\n   (list (completing-read\r\n          \"Lentic init function: \"\r\n          (mapcar\r\n           'symbol-name\r\n           lentic-init-functions)\r\n          'identity 'confirm)))\r\n  (save-excursion\r\n    (goto-char (point-max))\r\n    (let ((start (point)))\r\n      (insert\r\n       (format\r\n        ;; split this string or we get local variable not terminated properly\r\n        ;; errors.\r\n        (concat \"\\nLocal\"\r\n                \" Variables:\\nlentic-init: %s\\nEnd:\\n\") init-function))\r\n      (comment-region start (point)))))\r\n```\r\nI think it is too hack, is it possible to use  `add-file-local-variable' ?"}}